ソースを参照

Canvas2D: restore boundingInfo initial computation algo

nockawa 8 年 前
コミット
27c716213c
1 ファイル変更4 行追加4 行削除
  1. 4 4
      src/Canvas2d/babylon.prim2dBase.ts

+ 4 - 4
src/Canvas2d/babylon.prim2dBase.ts

@@ -2514,11 +2514,11 @@
                 if (this.owner) {
                     this.owner.boundingInfoRecomputeCounter.addCount(1, false);
                 }
-                //if (this.isSizedByContent) {
-                //    this._boundingInfo.clear();
-                //} else {
+                if (this.isSizedByContent) {
+                    this._boundingInfo.clear();
+                } else {
                     this._boundingInfo.copyFrom(this.levelBoundingInfo);
-                //}
+                }
                 let bi = this._boundingInfo;
 
                 var tps = new BoundingInfo2D();