Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scene/animation/animation_blend_space_1d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ AnimationNode::NodeTimeInfo AnimationNodeBlendSpace1D::_process(const AnimationM
na_n->process_state = process_state;
na_c->process_state = process_state;

if (na_n->node_state.get_base_path() == String()) {
// Create the base path before setting parameters during the first switch
StringName subpath = blend_points[new_closest].name;
String new_path = String(node_state.get_base_path()) + String(subpath) + "/";
na_n->set_node_state_base_path(new_path);
}

na_n->set_backward(na_c->is_backward());

na_n = nullptr;
Expand Down
7 changes: 7 additions & 0 deletions scene/animation/animation_blend_space_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,13 @@ AnimationNode::NodeTimeInfo AnimationNodeBlendSpace2D::_process(const AnimationM
na_n->process_state = process_state;
na_c->process_state = process_state;

if (na_n->node_state.get_base_path() == String()) {
// Create the base path before setting parameters during the first switch
StringName subpath = blend_points[new_closest].name;
String new_path = String(node_state.get_base_path()) + String(subpath) + "/";
na_n->set_node_state_base_path(new_path);
}

na_n->set_backward(na_c->is_backward());

na_n = nullptr;
Expand Down