Open AlexWarnes opened 2 years ago
ISSUE The Animation component on a loaded GLTF immediately throws the error Cannot set properties of undefined (setting 'weight')
Cannot set properties of undefined (setting 'weight')
POTENTIAL FIX I can fix the error locally when updating Animation.svelte line 28 to check for action before assigning weight, like so:
Animation.svelte
if (action && action.weight) { action.weight = weight; }
Issue REPLicated Here: Animation used in the Parrot.svelte file https://svelte.dev/repl/f5f903f2258f4a969c86287e2954ddee?version=3.45.0
Parrot.svelte
I'm new to SC and Three so apologies for wasting time if this is user error!
ISSUE The Animation component on a loaded GLTF immediately throws the error
Cannot set properties of undefined (setting 'weight')
POTENTIAL FIX I can fix the error locally when updating
Animation.svelte
line 28 to check for action before assigning weight, like so:Issue REPLicated Here: Animation used in the
Parrot.svelte
file https://svelte.dev/repl/f5f903f2258f4a969c86287e2954ddee?version=3.45.0I'm new to SC and Three so apologies for wasting time if this is user error!