When using on:before_render={animate}: obj3d.rot = [0, rot_y, 0] will, but obj3d.rot[1] = rot_y will not schedule a new render, the value of rot will be changed in both cases though. This may be a svelte-accmod or a WebGLRenderer.render_standard() logic issue, probably the second.
to check / fix / polish:
on:before_render={animate}
:obj3d.rot = [0, rot_y, 0]
will, butobj3d.rot[1] = rot_y
will not schedule a new render, the value ofrot
will be changed in both cases though. This may be asvelte-accmod
or aWebGLRenderer.render_standard()
logic issue, probably the second.I assume a problem with this line:
https://github.com/vatro/svelthree/blob/433dea2623a3620281b5f5b9fef62377c0dc235b/src/components/WebGLRenderer.svelte#L590
this hack will work with
on:before_render
: