From e94aab793624897365937fd6d570facb32ee6b40 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Fri, 5 Jun 2020 23:26:25 +0200 Subject: [PATCH] Restore capture caches when missing (cherry picked from commit 642d91381a0f9077313c76368a1231bf7233c0ab) --- scene/animation/animation_player.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 2bc9336b141..727671a6e25 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -416,8 +416,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); }