mirror of
https://github.com/panda3d/panda3d.git
synced 2026-05-22 23:58:48 -05:00
Fix is_playing() when playing an animation backwards
This commit is contained in:
@@ -35,6 +35,7 @@ This issue fixes several bugs that were still found in 1.9.2.
|
||||
* Add normalized() method to vectors
|
||||
* asyncFlattenStrong with inPlace=True caused node to disappear
|
||||
* Fix asyncFlattenStrong called on nodes without parent
|
||||
* Fix is_playing() check when playing an animation backwards
|
||||
|
||||
------------------------ RELEASE 1.9.2 ------------------------
|
||||
|
||||
|
||||
@@ -415,7 +415,12 @@ is_playing() const {
|
||||
return false;
|
||||
|
||||
case PM_play:
|
||||
return get_f() < _play_frames;
|
||||
if (_effective_frame_rate < 0.0) {
|
||||
// If we're playing backwards, check if we're at the beginning.
|
||||
return get_f() > 0;
|
||||
} else {
|
||||
return get_f() < _play_frames;
|
||||
}
|
||||
|
||||
case PM_loop:
|
||||
case PM_pingpong:
|
||||
|
||||
Reference in New Issue
Block a user