pailhead/three-instanced-mesh

setPositionAt(), setQuaternionAt(), setScaleAt() should set the needsUpdate flag to true.

PERECil opened this issue · 2 comments

When dynamically setting the position / quaternion / scale after the object has been added to the scene, setting new values for the attributes doesn't automatically triggers the needsUpdate flag, and the end user have to set it manually.

This should be done automatically.

Bonus task: only set the flag if the value has really changed.

Oops i think i butt-dialed this :D

Agreed, will address this.

Upon revisiting, I'm not so sure about this one. I think that with three you need to set the needsUpdate manually as well, so maybe best to keep it aligned with that.