Fix is_playing() when playing an animation backwards

This commit is contained in:
rdb
2016-09-14 20:55:57 +02:00
parent 9904980ce4
commit 2c651dc96b
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -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 ------------------------
+6 -1
View File
@@ -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: