Browse Source

Fix isVisible method of debuglayer

Temechon 8 năm trước cách đây
mục cha
commit
68779294a2
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/Debug/babylon.debugLayer.ts

+ 4 - 1
src/Debug/babylon.debugLayer.ts

@@ -21,7 +21,10 @@ module BABYLON {
         }
         
         public isVisible(): boolean {
-            return false;
+            if (!this._inspector) {
+                return false;
+            }
+            return true;
         }
 
         public hide() {