legacy-glTF1.js 643 B

12345678910111213141516
  1. /* eslint-disable import/no-internal-modules */
  2. import * as GLTF1 from "../glTF/1.0/index.js";
  3. /**
  4. * This is the entry point for the UMD module.
  5. * The entry point for a future ESM package should be index.ts
  6. */
  7. const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
  8. if (typeof globalObject !== "undefined") {
  9. globalObject.BABYLON = globalObject.BABYLON || {};
  10. globalObject.BABYLON.GLTF1 = globalObject.BABYLON.GLTF1 || {};
  11. for (const key in GLTF1) {
  12. globalObject.BABYLON.GLTF1[key] = GLTF1[key];
  13. }
  14. }
  15. export { GLTF1 };
  16. //# sourceMappingURL=legacy-glTF1.js.map