Commit b26f4a37 authored by limingzhe's avatar limingzhe

fix: debug

parent 0ff20a8b
...@@ -1120,6 +1120,13 @@ cc.Class({ ...@@ -1120,6 +1120,13 @@ cc.Class({
console.log(' this.photo end ', data); console.log(' this.photo end ', data);
console.log('this.newRectArr ', this.newRectArr); console.log('this.newRectArr ', this.newRectArr);
if (this.debugLayer.parent && this.debugLayer.active) {
this.debugDrawLayer.removeAllChildren();
}
if (this.newRectArr && this.newRectArr.length > 0) { if (this.newRectArr && this.newRectArr.length > 0) {
this.photoEndNewRect(data); this.photoEndNewRect(data);
return; return;
...@@ -1154,7 +1161,7 @@ cc.Class({ ...@@ -1154,7 +1161,7 @@ cc.Class({
this.debugDrawLayer.removeAllChildren(); // this.debugDrawLayer.removeAllChildren();
// const benchmark1Text = this.benchmark1Data.labelText // const benchmark1Text = this.benchmark1Data.labelText
// const benchmark1TextArr = benchmark1Text.split(' '); // const benchmark1TextArr = benchmark1Text.split(' ');
......
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