Browse Source

Fixing missing namespace.

sebastien 6 years ago
parent
commit
954a714888
1 changed files with 5 additions and 0 deletions
  1. 5 0
      loaders/legacy/legacy-glTF2.ts

+ 5 - 0
loaders/legacy/legacy-glTF2.ts

@@ -1,4 +1,5 @@
 import * as Extensions from "../src/glTF/2.0/Extensions";
 import * as Extensions from "../src/glTF/2.0/Extensions";
+import * as Interfaces from "../src/glTF/2.0/glTFLoaderInterfaces";
 import * as GLTF2 from "../src/glTF/2.0";
 import * as GLTF2 from "../src/glTF/2.0";
 
 
 /**
 /**
@@ -18,6 +19,10 @@ if (typeof globalObject !== "undefined") {
         BABYLON.GLTF2.Loader.Extensions[key] = (<any>Extensions)[key];
         BABYLON.GLTF2.Loader.Extensions[key] = (<any>Extensions)[key];
         keys.push(key);
         keys.push(key);
     }
     }
+    for (var key in Interfaces) {
+        BABYLON.GLTF2.Loader[key] = (<any>Interfaces)[key];
+        keys.push(key);
+    }
 
 
     for (var key in GLTF2) {
     for (var key in GLTF2) {
         // Prevent Reassignment.
         // Prevent Reassignment.