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;
}
if (Array.isArray(inputValue) && node.type === 'vec3') {
return inputValue;
}
// If the component is supplied with a default value use that
if (inputValue !== undefined && typeof inputValue !== 'object') {
return inputValue;