Update AnimationTree parameter list when updating AnimationNodeTransition input names

This commit is contained in:
Haoyu Qiu 2024-09-20 16:21:03 +08:00
parent 0a4aedb360
commit f169616cc6
1 changed files with 5 additions and 1 deletions

View File

@ -1139,7 +1139,11 @@ void AnimationNodeTransition::remove_input(int p_index) {
bool AnimationNodeTransition::set_input_name(int p_input, const String &p_name) { bool AnimationNodeTransition::set_input_name(int p_input, const String &p_name) {
pending_update = true; 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) { void AnimationNodeTransition::set_input_as_auto_advance(int p_input, bool p_enable) {