sebavan преди 6 години
родител
ревизия
92fd5284b5
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/Debug/debugLayer.ts

+ 2 - 1
src/Debug/debugLayer.ts

@@ -4,6 +4,7 @@ import { Scene } from "../scene";
 
     // declare INSPECTOR namespace for compilation issue
     declare var INSPECTOR: any;
+    declare var BABYLON: any;
     // load the inspector using require, if not present in the global namespace.
 
     /**
@@ -170,7 +171,7 @@ declare module "scene" {
             }
 
             // In case of module let s check the global emitted from the Inspector entry point.
-            if (BABYLON && (BABYLON as any).Inspector) {
+            if (BABYLON && BABYLON.Inspector) {
                 return BABYLON;
             }