瀏覽代碼

Merge pull request #1135 from nockawa/engine2d

Fix background visibility toggle
David Catuhe 9 年之前
父節點
當前提交
359fc92352
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Canvas2d/babylon.canvas2d.ts

+ 3 - 3
src/Canvas2d/babylon.canvas2d.ts

@@ -209,7 +209,7 @@
             }
 
             this._background.fill = value;
-            this._background.isVisible = true;
+            this._background.levelVisible = true;
         }
 
         /**
@@ -231,7 +231,7 @@
             }
 
             this._background.border = value;
-            this._background.isVisible = true;
+            this._background.levelVisible = true;
         }
 
         public get backgroundRoundRadius(): number {
@@ -249,7 +249,7 @@
             }
 
             this._background.roundRadius = value;
-            this._background.isVisible = true;
+            this._background.levelVisible = true;
         }
 
         public get engineData(): Canvas2DEngineBoundData {