Browse Source

Merge pull request #39329 from KoBeWi/capture_the_anim

Restore capture caches when missing
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
87b2d3f9cf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scene/animation/animation_player.cpp

+ 1 - 1
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);
 					}