diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-08 08:31:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 08:31:01 +0200 |
commit | 87b2d3f9cf2dee1f885eaba9d17215ecbcacf391 (patch) | |
tree | 3b881b6da944aa4003443db31baaa98a45904fa4 /scene/animation | |
parent | 67f56ff73ac2f7341ae531540076e53deb9c2423 (diff) | |
parent | 642d91381a0f9077313c76368a1231bf7233c0ab (diff) |
Merge pull request #39329 from KoBeWi/capture_the_anim
Restore capture caches when missing
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/animation_player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 4e56f1acf0..319d0171b3 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -396,7 +396,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, float Animation::UpdateMode update_mode = a->value_track_get_update_mode(i); if (update_mode == Animation::UPDATE_CAPTURE) { - if (p_started) { + if (p_started || pa->capture == Variant()) { pa->capture = pa->object->get_indexed(pa->subpath); } |