Browse Source

Fix isVisible for GUI3d

David Catuhe 7 năm trước cách đây
mục cha
commit
47b834ce9b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      gui/src/3D/controls/control3D.ts

+ 1 - 1
gui/src/3D/controls/control3D.ts

@@ -179,7 +179,7 @@ module BABYLON.GUI {
 
             let mesh = this.mesh;
             if (mesh) {
-                mesh.isVisible = value;
+                mesh.setEnabled(value);
             }
         }