diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2020-06-05 23:26:25 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2020-06-05 23:26:25 +0200 |
commit | 642d91381a0f9077313c76368a1231bf7233c0ab (patch) | |
tree | ed9a85dadea72f659d0462f73ff6fe1ffe4491f4 | |
parent | f54eda121d975127f68db624265271d39d8dabf3 (diff) |
Restore capture caches when missing
-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); } |