summaryrefslogtreecommitdiff
path: root/scene/animation/animation_player.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-13 18:02:53 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-13 18:02:53 +0100
commit7d2945f4635cabcc3de782bf3c4ea84f0bcce40f (patch)
tree97f5dd8ef65169dde2bcfab254fc3735c0c41dbe /scene/animation/animation_player.h
parent44f739288356d20c4e9b023b4769408d55599dae (diff)
parent4668a186db552e04b9864f7c104fe1743a1e1311 (diff)
Merge pull request #33733 from KoBeWi/seek_the_origin
Reset animation on playback stop
Diffstat (limited to 'scene/animation/animation_player.h')
-rw-r--r--scene/animation/animation_player.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/animation/animation_player.h b/scene/animation/animation_player.h
index 80ceb70d10..8dfa7aed27 100644
--- a/scene/animation/animation_player.h
+++ b/scene/animation/animation_player.h
@@ -192,6 +192,7 @@ private:
uint64_t accum_pass = 1;
float speed_scale = 1.0;
double default_blend_time = 0.0;
+ bool is_stopping = false;
struct AnimationData {
String name;
@@ -277,7 +278,7 @@ private:
void _animation_process(double p_delta);
void _node_removed(Node *p_node);
- void _stop_playing_caches();
+ void _stop_playing_caches(bool p_reset);
// bind helpers
Vector<String> _get_animation_list() const {