Skip to content

Commit

Permalink
Update AnimationTree parameter list when updating AnimationNodeTransi…
Browse files Browse the repository at this point in the history
…tion input names
  • Loading branch information
timothyqiu committed Sep 20, 2024
1 parent 0a4aedb commit f169616
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scene/animation/animation_blend_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,11 @@ void AnimationNodeTransition::remove_input(int p_index) {

bool AnimationNodeTransition::set_input_name(int p_input, const String &p_name) {
pending_update = true;
return AnimationNode::set_input_name(p_input, p_name);
if (!AnimationNode::set_input_name(p_input, p_name)) {
return false;
}
emit_signal(SNAME("tree_changed")); // For updating enum options.
return true;
}

void AnimationNodeTransition::set_input_as_auto_advance(int p_input, bool p_enable) {
Expand Down

0 comments on commit f169616

Please sign in to comment.