Skip to content

Commit

Permalink
Merge pull request godotengine#97224 from timothyqiu/transition-names
Browse files Browse the repository at this point in the history
Update `AnimationTree` parameter list when updating `AnimationNodeTransition` input names
  • Loading branch information
akien-mga committed Sep 20, 2024
2 parents 8ea7f5e + f169616 commit efc7c62
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 efc7c62

Please sign in to comment.