@needle-tools/engine 3.45.2-beta → 3.45.2-beta.1
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 +2 -1
- package/dist/needle-engine.js +7 -7
- package/dist/needle-engine.light.js +7 -7
- package/dist/needle-engine.light.min.js +29 -29
- package/dist/needle-engine.light.umd.cjs +3 -3
- package/dist/needle-engine.min.js +3 -3
- package/dist/needle-engine.umd.cjs +21 -21
- package/lib/engine/engine_addressables.js +2 -1
- package/lib/engine/engine_addressables.js.map +1 -1
- package/lib/engine-components/SceneSwitcher.js +1 -1
- package/lib/engine-components/SceneSwitcher.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/engine_addressables.ts +2 -1
- package/src/engine-components/SceneSwitcher.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,9 +4,10 @@ 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
|
-
## [3.45.2-beta] - 2024-07-17
|
|
7
|
+
## [3.45.2-beta.1] - 2024-07-17
|
|
8
8
|
- Add: Object `static:true` does now disable `matrixAutoUpdate`
|
|
9
9
|
- Fix: Animation component `play()` issue where previous animations were not always stopped/faded out
|
|
10
|
+
- Fix: SceneSwitcher regression causing scenes to not be unloaded
|
|
10
11
|
- Change: pointer events are now captured and continue to work when they hover over other HTML elements (if started in the 3D scene)
|
|
11
12
|
|
|
12
13
|
## [3.45.1-beta.7] - 2024-07-16
|
package/dist/needle-engine.js
CHANGED
|
@@ -29626,13 +29626,13 @@ function tiA() {
|
|
|
29626
29626
|
return g || null;
|
|
29627
29627
|
}
|
|
29628
29628
|
const t4 = gA("debugdefines");
|
|
29629
|
-
Sh('if(!globalThis[""3.45.2-beta""]) globalThis[""3.45.2-beta""] = "0.0.0";');
|
|
29629
|
+
Sh('if(!globalThis[""3.45.2-beta.1""]) globalThis[""3.45.2-beta.1""] = "0.0.0";');
|
|
29630
29630
|
Sh('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
|
|
29631
|
-
Sh('if(!globalThis[""Wed Jul 17 2024
|
|
29632
|
-
Sh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.45.2-beta";');
|
|
29631
|
+
Sh('if(!globalThis[""Wed Jul 17 2024 19:33:24 GMT+0200 (Central European Summer Time)""]) globalThis[""Wed Jul 17 2024 19:33:24 GMT+0200 (Central European Summer Time)""] = "unknown";');
|
|
29632
|
+
Sh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.45.2-beta.1";');
|
|
29633
29633
|
Sh('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
29634
|
-
Sh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Jul 17 2024
|
|
29635
|
-
const un = "3.45.2-beta", AJ = "undefined", i4 = "Wed Jul 17 2024
|
|
29634
|
+
Sh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Jul 17 2024 19:33:24 GMT+0200 (Central European Summer Time)";');
|
|
29635
|
+
const un = "3.45.2-beta.1", AJ = "undefined", i4 = "Wed Jul 17 2024 19:33:24 GMT+0200 (Central European Summer Time)";
|
|
29636
29636
|
t4 && console.log(`Engine version: ${un} (generator: ${AJ})
|
|
29637
29637
|
Project built at ${i4}`);
|
|
29638
29638
|
const oB = "needle_isActiveInHierarchy", $E = "builtin_components", sS = "needle_editor_guid";
|
|
@@ -55448,7 +55448,7 @@ const HR = Symbol("assetReference"), yQ = class {
|
|
|
55448
55448
|
* @returns true if the uri is a valid URL (http, https, blob)
|
|
55449
55449
|
*/
|
|
55450
55450
|
get hasUrl() {
|
|
55451
|
-
return this._url !== void 0 && (this._url.startsWith("http") || this._url.startsWith("blob:"));
|
|
55451
|
+
return this._url !== void 0 && (this._url.startsWith("http") || this._url.startsWith("blob:") || this._url.startsWith("www.") || this._url.includes("/"));
|
|
55452
55452
|
}
|
|
55453
55453
|
/**
|
|
55454
55454
|
* This is the loaded asset root object. If the asset is a glb/gltf file this will be the {@link three#Scene} object.
|
|
@@ -98570,7 +98570,7 @@ class Eo extends FA {
|
|
|
98570
98570
|
async __internalSwitchScene(e) {
|
|
98571
98571
|
var i, I;
|
|
98572
98572
|
if (this._currentScene) {
|
|
98573
|
-
Zo && console.log("UNLOAD",
|
|
98573
|
+
Zo && console.log("UNLOAD", this._currentScene.url, "HasURL?: " + this._currentScene.hasUrl);
|
|
98574
98574
|
const o = this.tryGetSceneEventListener(this._currentScene.asset);
|
|
98575
98575
|
if (o != null && o.sceneClosing) {
|
|
98576
98576
|
const s = o.sceneClosing();
|
|
@@ -29626,13 +29626,13 @@ function Cte() {
|
|
|
29626
29626
|
return s || null;
|
|
29627
29627
|
}
|
|
29628
29628
|
const _V = ie("debugdefines");
|
|
29629
|
-
Kg('if(!globalThis[""3.45.2-beta""]) globalThis[""3.45.2-beta""] = "0.0.0";');
|
|
29629
|
+
Kg('if(!globalThis[""3.45.2-beta.1""]) globalThis[""3.45.2-beta.1""] = "0.0.0";');
|
|
29630
29630
|
Kg('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
|
|
29631
|
-
Kg('if(!globalThis[""Wed Jul 17 2024
|
|
29632
|
-
Kg('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.45.2-beta";');
|
|
29631
|
+
Kg('if(!globalThis[""Wed Jul 17 2024 19:33:36 GMT+0200 (Central European Summer Time)""]) globalThis[""Wed Jul 17 2024 19:33:36 GMT+0200 (Central European Summer Time)""] = "unknown";');
|
|
29632
|
+
Kg('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.45.2-beta.1";');
|
|
29633
29633
|
Kg('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
29634
|
-
Kg('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Jul 17 2024
|
|
29635
|
-
const sl = "3.45.2-beta", V2 = "undefined", bV = "Wed Jul 17 2024
|
|
29634
|
+
Kg('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Jul 17 2024 19:33:36 GMT+0200 (Central European Summer Time)";');
|
|
29635
|
+
const sl = "3.45.2-beta.1", V2 = "undefined", bV = "Wed Jul 17 2024 19:33:36 GMT+0200 (Central European Summer Time)";
|
|
29636
29636
|
_V && console.log(`Engine version: ${sl} (generator: ${V2})
|
|
29637
29637
|
Project built at ${bV}`);
|
|
29638
29638
|
const zu = "needle_isActiveInHierarchy", Im = "builtin_components", bw = "needle_editor_guid";
|
|
@@ -55448,7 +55448,7 @@ const RT = Symbol("assetReference"), nf = class {
|
|
|
55448
55448
|
* @returns true if the uri is a valid URL (http, https, blob)
|
|
55449
55449
|
*/
|
|
55450
55450
|
get hasUrl() {
|
|
55451
|
-
return this._url !== void 0 && (this._url.startsWith("http") || this._url.startsWith("blob:"));
|
|
55451
|
+
return this._url !== void 0 && (this._url.startsWith("http") || this._url.startsWith("blob:") || this._url.startsWith("www.") || this._url.includes("/"));
|
|
55452
55452
|
}
|
|
55453
55453
|
/**
|
|
55454
55454
|
* This is the loaded asset root object. If the asset is a glb/gltf file this will be the {@link three#Scene} object.
|
|
@@ -98570,7 +98570,7 @@ class ro extends Re {
|
|
|
98570
98570
|
async __internalSwitchScene(t) {
|
|
98571
98571
|
var n, r;
|
|
98572
98572
|
if (this._currentScene) {
|
|
98573
|
-
Uo && console.log("UNLOAD",
|
|
98573
|
+
Uo && console.log("UNLOAD", this._currentScene.url, "HasURL?: " + this._currentScene.hasUrl);
|
|
98574
98574
|
const o = this.tryGetSceneEventListener(this._currentScene.asset);
|
|
98575
98575
|
if (o != null && o.sceneClosing) {
|
|
98576
98576
|
const a = o.sceneClosing();
|