sebavan пре 6 година
родитељ
комит
c40f13c6fb
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
             }