Просмотр исходного кода

Merge pull request #52555 from TokageItLab/fixed-discrete-animation-seek

Fixed seeking behavior of property track with discrete interpolation
Rémi Verschelde 4 лет назад
Родитель
Сommit
132ad85670
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scene/animation/animation_tree.cpp

+ 1 - 1
scene/animation/animation_tree.cpp

@@ -958,7 +958,7 @@ void AnimationTree::_process_graph(real_t p_delta) {
 
 
 							Variant::interpolate(t->value, value, blend, t->value);
 							Variant::interpolate(t->value, value, blend, t->value);
 
 
-						} else if (delta != 0) {
+						} else {
 							List<int> indices;
 							List<int> indices;
 							a->value_track_get_key_indices(i, time, delta, &indices);
 							a->value_track_get_key_indices(i, time, delta, &indices);