legacy-glTF1.ts 612 B

12345678910111213141516
  1. import * as GLTF1 from "../src/glTF/1.0";
  2. /**
  3. * This is the entry point for the UMD module.
  4. * The entry point for a future ESM package should be index.ts
  5. */
  6. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  7. if (typeof globalObject !== "undefined") {
  8. (<any>globalObject).BABYLON = (<any>globalObject).BABYLON || { };
  9. (<any>globalObject).BABYLON.GLTF1 = (<any>globalObject).BABYLON.GLTF1 || { };
  10. for (var key in GLTF1) {
  11. (<any>globalObject).BABYLON.GLTF1[key] = (<any>GLTF1)[key];
  12. }
  13. }
  14. export { GLTF1 };