@needle-tools/engine 4.11.5-next.b4a2f9e → 4.11.5-next.d95d573

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.
package/CHANGELOG.md CHANGED
@@ -4,11 +4,13 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [4.11.5-beta] - 2025-10-29
8
- - Fix: Timeline `instantiate` clone
9
- - Fix: Renderer `sharedMaterials` being not assigned
10
- - Fix: Lightmap performance issue
11
- - Improve JSDoc
7
+ ## [4.11.5] - 2025-10-31
8
+ - Fix: Timeline cloning with `instantiate` ([forum 2733](<https://forum.needle.tools/t/2733>))
9
+ - Fix: Renderer `sharedMaterials` being null in awake
10
+ - Fix: Issue where lightmapped materials were cloned
11
+ - Fix: Apply lighting intensity multiplier in root scene
12
+ - Fix: GLTF extensions when loading scene with Blob URL
13
+ - Improve JSDoc documentation
12
14
 
13
15
  ## [4.11.4] - 2025-10-24
14
16
  - Add: `qrcode-logo-src` attribute to `<needle-engine>` web component to override the logo displayed in the QR code button. Requires PRO license.
@@ -1700,11 +1700,11 @@ wo('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
1700
1700
  wo('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
1701
1701
  wo('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
1702
1702
  wo('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
1703
- wo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.11.5-beta";');
1703
+ wo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.11.5";');
1704
1704
  wo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
1705
- wo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Oct 30 2025 17:20:04 GMT+0000 (Coordinated Universal Time)";');
1705
+ wo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Oct 31 2025 12:26:25 GMT+0000 (Coordinated Universal Time)";');
1706
1706
  wo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
1707
- const Un = "4.11.5-beta", Zm = "undefined", A0 = "Thu Oct 30 2025 17:20:04 GMT+0000 (Coordinated Universal Time)";
1707
+ const Un = "4.11.5", Zm = "undefined", A0 = "Fri Oct 31 2025 12:26:25 GMT+0000 (Coordinated Universal Time)";
1708
1708
  E0 && console.log(`Engine version: ${Un} (generator: ${Zm})
1709
1709
  Project built at ${A0}`);
1710
1710
  const zl = NEEDLE_PUBLIC_KEY, po = "needle_isActiveInHierarchy", Zr = "builtin_components", Kh = "needle_editor_guid";
@@ -4695,7 +4695,7 @@ class K {
4695
4695
  const n = e == "immersive-ar" ? i.scripts_immersive_ar : i.scripts_immersive_vr;
4696
4696
  We ? console.log(`%cRequesting ${e} session`, "font-weight:bold;", t, n) : console.log(`%cRequesting ${e} session`, "font-weight:bold;");
4697
4697
  for (const a of n)
4698
- a.onBeforeXR && a.onBeforeXR(e, t);
4698
+ a.onBeforeXR && a.activeAndEnabled && !a.destroyed && a.onBeforeXR(e, t);
4699
4699
  for (const a of this._sessionRequestStartListeners)
4700
4700
  a({ mode: e, init: t });
4701
4701
  We && je("Requesting " + e + " session (" + Date.now() + ")"), this._currentSessionRequest = navigator?.xr?.requestSession(e, t), this._currentSessionRequestMode = e;
@@ -27476,6 +27476,10 @@ const Ol = x("debugwebxr"), pT = x("debugusdz"), ht = class oa extends T {
27476
27476
  console.warn(`WebXR: another WebXR component is already active (${oa.activeWebXRComponent?.name}). This is ignored: ${this.name}`);
27477
27477
  return;
27478
27478
  }
27479
+ if (this.activeAndEnabled === !1 || this.destroyed) {
27480
+ console.debug("[WebXR] onBeforeXR called on disabled or destroyed component");
27481
+ return;
27482
+ }
27479
27483
  oa.activeWebXRComponent = this, e == "immersive-ar" && this.useDepthSensing && (t.optionalFeatures = t.optionalFeatures || [], t.optionalFeatures.push("depth-sensing"));
27480
27484
  }
27481
27485
  /**