@needle-tools/engine 3.5.3-alpha → 3.5.3-alpha.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 +3 -0
- package/dist/needle-engine.js +1 -1
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine/engine_serialization_core.js +1 -1
- package/lib/engine/engine_serialization_core.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/engine/codegen/register_types.js +2 -2
- package/src/engine/engine_serialization_core.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needle-tools/engine",
|
|
3
|
-
"version": "3.5.3-alpha",
|
|
3
|
+
"version": "3.5.3-alpha.1",
|
|
4
4
|
"description": "Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in",
|
|
5
5
|
"main": "dist/needle-engine.umd.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypeStore } from "./../engine_typestore"
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
// Import types
|
|
4
4
|
import { __Ignore } from "../../engine-components/codegen/components";
|
|
5
5
|
import { ActionBuilder } from "../../engine-components/export/usdz/extensions/behavior/BehavioursBuilder";
|
|
@@ -215,7 +215,7 @@ import { XRGrabModel } from "../../engine-components/webxr/WebXRGrabRendering";
|
|
|
215
215
|
import { XRGrabRendering } from "../../engine-components/webxr/WebXRGrabRendering";
|
|
216
216
|
import { XRRig } from "../../engine-components/webxr/WebXRRig";
|
|
217
217
|
import { XRState } from "../../engine-components/XRFlag";
|
|
218
|
-
|
|
218
|
+
|
|
219
219
|
// Register types
|
|
220
220
|
TypeStore.add("__Ignore", __Ignore);
|
|
221
221
|
TypeStore.add("ActionBuilder", ActionBuilder);
|
|
@@ -436,7 +436,7 @@ function implictlyAssignPrimitiveTypes(obj: any, serializedData: any) {
|
|
|
436
436
|
if (isPrimitiveType(data[key]) && !isPrimitiveType(member)) {
|
|
437
437
|
|
|
438
438
|
const prop = tryFindPropertyDescriptor(member, key);
|
|
439
|
-
if (
|
|
439
|
+
if (prop?.writable === false && (prop && prop.set === undefined)) {
|
|
440
440
|
if (debug)
|
|
441
441
|
console.warn("Property is not writable \"" + key + "\"", member, prop, data[key], member[key]);
|
|
442
442
|
continue;
|