Explorar o código

Fix isVisible method of debuglayer

Temechon %!s(int64=8) %!d(string=hai) anos
pai
achega
68779294a2
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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() {