Closed b005t3r closed 7 years ago
Thanks! That one was an easy fix. :smile:
Thanks, Daniel!
BTW, this particular issue is somehow connected to #954 - if setOrientationChanged()
was changed to protected
, _transformationChanged
should be set inside it (overridden in Sprite3D
) and you wouldn't need to override all of the other methods you did just to set _transformationChanged
(you'd only need to do it once inside set transformationMatrix
).
PS. I'm not complaining, just trying to prove that it really makes sense to do what I proposed in #954 😄
Consider this:
The expected result is that
sprite3D
should be draw with its center anchored atparent
's top-left corner.The actual result is that it's top-left corner is anchored at the
parent
's top-left corner, as if the pivot hasn't been changed at all.This is caused due to
_transformationChanged
not being set totrue
onalignPivot()
call inSprite3D
(this method is not overridden).