Browse Source

Merge pull request #1135 from nockawa/engine2d

Fix background visibility toggle
David Catuhe 9 năm trước cách đây
mục cha
commit
359fc92352
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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 {