Commit c2548bc9 authored by limingzhe's avatar limingzhe

fix: debug

parent 9388f955
......@@ -587,15 +587,15 @@ cc.Class({
if (this.isCanDraw) {
return;
}
this.isCanDraw = true;
// if (this.isCanDraw) {
// return;
// }
// this.isCanDraw = true;
delayCall(0.3, () => {
this.isCanDraw = false;
})
// delayCall(0.3, () => {
// this.isCanDraw = false;
// })
this.debugDrawLayer.removeAllChildren();
......@@ -4549,13 +4549,14 @@ cc.Class({
armatureNames.push(armatures[i].name);
}
// console.log('armatureNames: ', armatureNames);
let animationNames = [];
if (armatureNames.length > 0) {
let defaultArmatureName = armatureNames[0];
dragonDisplay.armatureName = defaultArmatureName;
// let animationNames = dragonDisplay.getAnimationNames(defaultArmatureName);
let defaultArmature = armatures[0];
let animations = defaultArmature.animation;
let animationNames = [];
for (let i = 0; i < animations.length; i++) {
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