Sfoglia il codice sorgente

Fix isVisible method of debuglayer

Temechon 9 anni fa
parent
commit
68779294a2
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      src/Debug/babylon.debugLayer.ts

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

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