瀏覽代碼

Fix Core Merge

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;
             }