@needle-tools/engine 3.6.0-alpha.3 → 3.6.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28367,12 +28367,15 @@ function jB(i, A) {
28367
28367
  }
28368
28368
  return !0;
28369
28369
  }
28370
- (0, eval)(`
28371
- if(!globalThis["NEEDLE_ENGINE_VERSION"])
28372
- globalThis["NEEDLE_ENGINE_VERSION"] = "0.0.0";
28373
- if(!globalThis[""undefined""])
28374
- globalThis[""undefined""] = "unknown";
28375
- `);
28370
+ try {
28371
+ (0, eval)(`
28372
+ if(!globalThis["NEEDLE_ENGINE_VERSION"])
28373
+ globalThis["NEEDLE_ENGINE_VERSION"] = "0.0.0";
28374
+ if(!globalThis[""undefined""])
28375
+ globalThis[""undefined""] = "unknown";
28376
+ `);
28377
+ } catch {
28378
+ }
28376
28379
  const CV = NEEDLE_ENGINE_VERSION, HCA = "undefined", On = "needle_isActiveInHierarchy", fB = "builtin_components", Lu = "needle_editor_guid", sV = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
28377
28380
  function nV(i) {
28378
28381
  return typeof i == "string" && sV.test(i);
@@ -80046,7 +80049,7 @@ class wH extends HTMLElement {
80046
80049
  const c = RC();
80047
80050
  for (let h = 0; h < e.length; h++) {
80048
80051
  if (this._loadId !== t)
80049
- return;
80052
+ return s;
80050
80053
  const l = e[h];
80051
80054
  if (!l.includes(".glb") && !l.includes(".gltf")) {
80052
80055
  const y = `Needle Engine: found suspicious src "${l}"`;
@@ -80077,16 +80080,13 @@ class wH extends HTMLElement {
80077
80080
  });
80078
80081
  const y = D.scene;
80079
80082
  if (y) {
80080
- if (this._loadId !== t) {
80081
- Aa(y, !0, !0);
80082
- return;
80083
- }
80083
+ if (this._loadId !== t)
80084
+ return Aa(y, !0, !0), s;
80084
80085
  eA.add(y, Q.scene, Q);
80085
80086
  }
80086
80087
  }
80087
80088
  }
80088
- if (this._loadId === t)
80089
- return s;
80089
+ return this._loadId !== t, s;
80090
80090
  }), !C) {
80091
80091
  console.error("Needle Engine: No files to load", e);
80092
80092
  return;
@@ -28367,12 +28367,15 @@ function Ed(n, e) {
28367
28367
  }
28368
28368
  return !0;
28369
28369
  }
28370
- (0, eval)(`
28371
- if(!globalThis["NEEDLE_ENGINE_VERSION"])
28372
- globalThis["NEEDLE_ENGINE_VERSION"] = "0.0.0";
28373
- if(!globalThis[""undefined""])
28374
- globalThis[""undefined""] = "unknown";
28375
- `);
28370
+ try {
28371
+ (0, eval)(`
28372
+ if(!globalThis["NEEDLE_ENGINE_VERSION"])
28373
+ globalThis["NEEDLE_ENGINE_VERSION"] = "0.0.0";
28374
+ if(!globalThis[""undefined""])
28375
+ globalThis[""undefined""] = "unknown";
28376
+ `);
28377
+ } catch {
28378
+ }
28376
28379
  const L6 = NEEDLE_ENGINE_VERSION, woe = "undefined", Cc = "needle_isActiveInHierarchy", Ku = "builtin_components", ty = "needle_editor_guid", F6 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
28377
28380
  function U6(n) {
28378
28381
  return typeof n == "string" && F6.test(n);
@@ -80046,7 +80049,7 @@ class jU extends HTMLElement {
80046
80049
  const g = va();
80047
80050
  for (let m = 0; m < t.length; m++) {
80048
80051
  if (this._loadId !== i)
80049
- return;
80052
+ return l;
80050
80053
  const A = t[m];
80051
80054
  if (!A.includes(".glb") && !A.includes(".gltf")) {
80052
80055
  const C = `Needle Engine: found suspicious src "${A}"`;
@@ -80077,16 +80080,13 @@ class jU extends HTMLElement {
80077
80080
  });
80078
80081
  const C = _.scene;
80079
80082
  if (C) {
80080
- if (this._loadId !== i) {
80081
- Dc(C, !0, !0);
80082
- return;
80083
- }
80083
+ if (this._loadId !== i)
80084
+ return Dc(C, !0, !0), l;
80084
80085
  $.add(C, f.scene, f);
80085
80086
  }
80086
80087
  }
80087
80088
  }
80088
- if (this._loadId === i)
80089
- return l;
80089
+ return this._loadId !== i, l;
80090
80090
  }), !a) {
80091
80091
  console.error("Needle Engine: No files to load", t);
80092
80092
  return;