sebavan 6 anni fa
parent
commit
92fd5284b5
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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;
             }