Merge pull request #39329 from KoBeWi/capture_the_anim

Restore capture caches when missing
This commit is contained in:
Rémi Verschelde 2020-06-08 08:31:01 +02:00 committed by GitHub
commit 87b2d3f9cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, float
Animation::UpdateMode update_mode = a->value_track_get_update_mode(i); Animation::UpdateMode update_mode = a->value_track_get_update_mode(i);
if (update_mode == Animation::UPDATE_CAPTURE) { if (update_mode == Animation::UPDATE_CAPTURE) {
if (p_started) { if (p_started || pa->capture == Variant()) {
pa->capture = pa->object->get_indexed(pa->subpath); pa->capture = pa->object->get_indexed(pa->subpath);
} }