Commit e242d6fc authored by limingzhe's avatar limingzhe

fix: debug

parent 294b4553
...@@ -1985,6 +1985,7 @@ cc.Class({ ...@@ -1985,6 +1985,7 @@ cc.Class({
console.log(' this.photo end ', data); console.log(' this.photo end ', data);
this.pushNodePoolArr();
if (this.debugLayer.parent && this.debugLayer.active) { if (this.debugLayer.parent && this.debugLayer.active) {
...@@ -1999,7 +2000,6 @@ cc.Class({ ...@@ -1999,7 +2000,6 @@ cc.Class({
}) })
} }
this.pushNodePoolArr();
...@@ -2077,6 +2077,8 @@ cc.Class({ ...@@ -2077,6 +2077,8 @@ cc.Class({
const node = arr[i]; const node = arr[i];
if (node.isPoolNode) { if (node.isPoolNode) {
this.nodePoolArr.push(node); this.nodePoolArr.push(node);
node.active = false;
} else { } else {
node.removeFromParent(); node.removeFromParent();
} }
...@@ -3792,7 +3794,7 @@ cc.Class({ ...@@ -3792,7 +3794,7 @@ cc.Class({
node.rectColor = color; node.rectColor = color;
node.isPoolNode = true; node.isPoolNode = true;
node.active = true;
return node; return node;
}, },
......
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