@needle-tools/engine 2.67.6-pre → 2.67.8-pre
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 +14 -0
- package/dist/needle-engine.js +5787 -5768
- package/dist/needle-engine.umd.cjs +83 -83
- package/lib/engine/engine_context.d.ts +170 -0
- package/lib/engine/engine_context.js +855 -0
- package/lib/engine/engine_context.js.map +1 -0
- package/lib/engine/engine_mainloop_utils.js +4 -1
- package/lib/engine/engine_mainloop_utils.js.map +1 -1
- package/lib/engine/engine_setup.d.ts +1 -166
- package/lib/engine/engine_setup.js +2 -839
- package/lib/engine/engine_setup.js.map +1 -1
- package/lib/engine/engine_time.d.ts +2 -0
- package/lib/engine/engine_time.js +4 -1
- package/lib/engine/engine_time.js.map +1 -1
- package/lib/engine-components/AnimatorController.js.map +1 -1
- package/lib/engine-components/ui/Canvas.d.ts +4 -1
- package/lib/engine-components/ui/Canvas.js +17 -1
- package/lib/engine-components/ui/Canvas.js.map +1 -1
- package/lib/engine-components/ui/EventSystem.js +1 -2
- package/lib/engine-components/ui/EventSystem.js.map +1 -1
- package/lib/engine-components/ui/Text.js +4 -0
- package/lib/engine-components/ui/Text.js.map +1 -1
- package/lib/engine-components/ui/Utils.js +6 -4
- package/lib/engine-components/ui/Utils.js.map +1 -1
- package/package.json +1 -1
- package/plugins/vite/drop.js +1 -0
- package/plugins/vite/editor-connection.js +1 -1
- package/plugins/vite/poster.js +1 -1
- package/plugins/vite/reload.js +1 -1
- package/src/engine/engine_context.ts +957 -0
- package/src/engine/engine_mainloop_utils.ts +4 -2
- package/src/engine/engine_setup.ts +2 -941
- package/src/engine/engine_time.ts +4 -1
- package/src/engine-components/AnimatorController.ts +2 -2
- package/src/engine-components/postprocessing/Volume.ts +213 -213
- package/src/engine-components/ui/Canvas.ts +19 -1
- package/src/engine-components/ui/EventSystem.ts +1 -2
- package/src/engine-components/ui/Text.ts +3 -0
- package/src/engine-components/ui/Utils.ts +6 -4
|
@@ -222,7 +222,8 @@ export function updateIsActive(obj?: Object3D) {
|
|
|
222
222
|
console.trace("Invalid call - no current context.");
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
|
-
const
|
|
225
|
+
const activeSelf = isActiveSelf(obj);
|
|
226
|
+
const wasSuccessful = updateIsActiveInHierarchyRecursiveRuntime(obj, activeSelf, true);
|
|
226
227
|
if (!wasSuccessful) {
|
|
227
228
|
console.error("Failed to update active state in hierarchy of \"" + obj.name + "\"", obj);
|
|
228
229
|
console.warn(" ↑ this error might be caused by circular references. Please make sure you don't have files with circular references (e.g. one GLB 1 is loading GLB 2 which is then loading GLB 1 again).")
|
|
@@ -240,7 +241,8 @@ function updateIsActiveInHierarchyRecursiveRuntime(go: THREE.Object3D, activeInH
|
|
|
240
241
|
activeInHierarchy = isActive;
|
|
241
242
|
// IF we update activeInHierarchy within a disabled hierarchy we need to check the parent
|
|
242
243
|
if (activeInHierarchy && go.parent) {
|
|
243
|
-
activeInHierarchy = go.parent[constants.activeInHierarchyFieldName]
|
|
244
|
+
activeInHierarchy = go.parent[constants.activeInHierarchyFieldName];
|
|
245
|
+
if(activeInHierarchy === undefined) activeInHierarchy = true;
|
|
244
246
|
}
|
|
245
247
|
}
|
|
246
248
|
|