summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_tree.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-05-14 13:28:56 +0200
committerkobewi <kobewi4e@gmail.com>2024-05-30 12:03:43 +0200
commita345160ab348c93854779410f97248c30eb6a66f (patch)
treef7b3940af638d3b3e7cf6806e86df74d39f4d738 /scene/animation/animation_tree.cpp
parent60844997bb2981c44e3b4396ab2918df90f13c97 (diff)
downloadredot-engine-a345160ab348c93854779410f97248c30eb6a66f.tar.gz
Fix wrong usage of parameters_base_path StringName
Diffstat (limited to 'scene/animation/animation_tree.cpp')
-rw-r--r--scene/animation/animation_tree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index d4061ab167..69287478db 100644
--- a/scene/animation/animation_tree.cpp
+++ b/scene/animation/animation_tree.cpp
@@ -626,7 +626,7 @@ bool AnimationTree::_blend_pre_process(double p_delta, int p_track_count, const
for (int i = 0; i < p_track_count; i++) {
src_blendsw[i] = 1.0; // By default all go to 1 for the root input.
}
- root_animation_node->node_state.base_path = SceneStringName(parameters_base_path);
+ root_animation_node->node_state.base_path = SNAME(Animation::PARAMETERS_BASE_PATH.ascii().get_data());
root_animation_node->node_state.parent = nullptr;
}
@@ -787,7 +787,7 @@ void AnimationTree::_update_properties() {
input_activity_map_get.clear();
if (root_animation_node.is_valid()) {
- _update_properties_for_node(SceneStringName(parameters_base_path), root_animation_node);
+ _update_properties_for_node(Animation::PARAMETERS_BASE_PATH, root_animation_node);
}
properties_dirty = false;