Commit c2548bc9 authored by limingzhe's avatar limingzhe

fix: debug

parent 9388f955
...@@ -587,15 +587,15 @@ cc.Class({ ...@@ -587,15 +587,15 @@ cc.Class({
if (this.isCanDraw) { // if (this.isCanDraw) {
return; // return;
} // }
this.isCanDraw = true; // this.isCanDraw = true;
delayCall(0.3, () => { // delayCall(0.3, () => {
this.isCanDraw = false; // this.isCanDraw = false;
}) // })
this.debugDrawLayer.removeAllChildren(); this.debugDrawLayer.removeAllChildren();
...@@ -4549,13 +4549,14 @@ cc.Class({ ...@@ -4549,13 +4549,14 @@ cc.Class({
armatureNames.push(armatures[i].name); armatureNames.push(armatures[i].name);
} }
// console.log('armatureNames: ', armatureNames); // console.log('armatureNames: ', armatureNames);
let animationNames = [];
if (armatureNames.length > 0) { if (armatureNames.length > 0) {
let defaultArmatureName = armatureNames[0]; let defaultArmatureName = armatureNames[0];
dragonDisplay.armatureName = defaultArmatureName; dragonDisplay.armatureName = defaultArmatureName;
// let animationNames = dragonDisplay.getAnimationNames(defaultArmatureName); // let animationNames = dragonDisplay.getAnimationNames(defaultArmatureName);
let defaultArmature = armatures[0]; let defaultArmature = armatures[0];
let animations = defaultArmature.animation; let animations = defaultArmature.animation;
let animationNames = [];
for (let i = 0; i < animations.length; i++) { for (let i = 0; i < animations.length; i++) {
animationNames.push(animations[i].name); animationNames.push(animations[i].name);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment