summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_tree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/animation/animation_tree.cpp')
-rw-r--r--scene/animation/animation_tree.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index 9694e855b5..2b7c47c869 100644
--- a/scene/animation/animation_tree.cpp
+++ b/scene/animation/animation_tree.cpp
@@ -568,10 +568,11 @@ bool AnimationTree::_blend_pre_process(double p_delta, int p_track_count, const
pi.seeked = true;
root_animation_node->_pre_process(&process_state, pi, false);
started = false;
+ } else {
+ pi.seeked = false;
+ pi.time = p_delta;
+ root_animation_node->_pre_process(&process_state, pi, false);
}
- pi.seeked = false;
- pi.time = p_delta;
- root_animation_node->_pre_process(&process_state, pi, false);
}
if (!process_state.valid) {
@@ -606,8 +607,8 @@ uint64_t AnimationTree::get_last_process_pass() const {
return process_pass;
}
-Array AnimationTree::get_configuration_warnings() const {
- Array warnings = Node::get_configuration_warnings();
+PackedStringArray AnimationTree::get_configuration_warnings() const {
+ PackedStringArray warnings = Node::get_configuration_warnings();
if (!root_animation_node.is_valid()) {
warnings.push_back(RTR("No root AnimationNode for the graph is set."));
}