Browse Source

Fix isVisible method of debuglayer

Temechon 8 years ago
parent
commit
68779294a2
1 changed files with 4 additions and 1 deletions
  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() {