Commit ca9e2e33 authored by limingzhe's avatar limingzhe

fix: debug

parent fcd06702
...@@ -1968,7 +1968,7 @@ cc.Class({ ...@@ -1968,7 +1968,7 @@ cc.Class({
photoEnd(data, isPool=false) { photoEnd(data, isPool=false) {
console.log(' this.photo end ', data); // console.log(' this.photo end ', data);
if (!this.canTouch && isPool == false) { if (!this.canTouch && isPool == false) {
this.dataPool.push(data); this.dataPool.push(data);
...@@ -2820,7 +2820,6 @@ cc.Class({ ...@@ -2820,7 +2820,6 @@ cc.Class({
console.log('benchmark1LabelData: ', benchmark1LabelData); console.log('benchmark1LabelData: ', benchmark1LabelData);
if ( this.firstItemData ) { if ( this.firstItemData ) {
const firstText = this.firstItemData.labelText const firstText = this.firstItemData.labelText
...@@ -3587,7 +3586,12 @@ cc.Class({ ...@@ -3587,7 +3586,12 @@ cc.Class({
rect.width *= this.debugBgImg.width; rect.width *= this.debugBgImg.width;
rect.height *= this.debugBgImg.height; rect.height *= this.debugBgImg.height;
const node = getSprNode(color); let node = new cc.Node();
if (this.debugLayer.parent && this.debugLayer.active) {
node = getSprNode(color);
node.anchorX = 0; node.anchorX = 0;
node.anchorY = 0; node.anchorY = 0;
node.x = rect.x; node.x = rect.x;
...@@ -3595,6 +3599,8 @@ cc.Class({ ...@@ -3595,6 +3599,8 @@ cc.Class({
node.scaleX = rect.width / node.width; node.scaleX = rect.width / node.width;
node.scaleY = rect.height / node.height; node.scaleY = rect.height / node.height;
}
node.ccRect = new cc.Rect(rect.x, rect.y, rect.width, rect.height); node.ccRect = new cc.Rect(rect.x, rect.y, rect.width, rect.height);
......
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