Commit ca9e2e33 authored by limingzhe's avatar limingzhe

fix: debug

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