Explorar o código

debug layer fix

sebavan %!s(int64=6) %!d(string=hai) anos
pai
achega
c40f13c6fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Debug/debugLayer.ts

+ 1 - 1
src/Debug/debugLayer.ts

@@ -171,7 +171,7 @@ declare module "../scene" {
             }
 
             // In case of module let s check the global emitted from the Inspector entry point.
-            if (BABYLON && BABYLON.Inspector) {
+            if (typeof BABYLON !== 'undefined' && typeof  BABYLON.Inspector !== 'undefined') {
                 return BABYLON;
             }