fix(app): correctly initialize vec3 inputs in nestedsettings

Closes #32
This commit is contained in:
2026-02-04 20:08:04 +01:00
parent 642cca30ad
commit 548fa4f0a1
2 changed files with 5 additions and 1 deletions

View File

@@ -56,6 +56,10 @@
return 0; return 0;
} }
if (Array.isArray(inputValue) && node.type === 'vec3') {
return inputValue;
}
// If the component is supplied with a default value use that // If the component is supplied with a default value use that
if (inputValue !== undefined && typeof inputValue !== 'object') { if (inputValue !== undefined && typeof inputValue !== 'object') {
return inputValue; return inputValue;

View File

@@ -7,7 +7,7 @@
return JSON.stringify( return JSON.stringify(
{ {
...g, ...g,
nodes: g.nodes.map((n: object) => ({ ...n, tmp: undefined })) nodes: g.nodes.map((n: object) => ({ ...n, tmp: undefined, state: undefined }))
}, },
null, null,
2 2