thetestgame / panda3d-sprite

Library for using sprite sheets and animating them in the Panda3D game engine
MIT License
9 stars 0 forks source link

flip_x/flip_y logic prevents setting value to False #2

Closed izzyboris closed 2 months ago

izzyboris commented 7 months ago

It's not possible to directly call sprite.flip_x(False) because of the implicit boolean check here:

https://github.com/thetestgame/panda3d-sprite/blob/eac302ae3769834a6ce171b08467ea2b81930b96/panda3d_sprite/sprite.py#L612

Trying to set "False" (unflipped) causes the sprite to flip back and forth with each call.