mirror of
https://github.com/godotengine/godot.git
synced 2024-11-28 23:22:38 +00:00
Merge pull request #97224 from timothyqiu/transition-names
Update `AnimationTree` parameter list when updating `AnimationNodeTransition` input names
This commit is contained in:
commit
efc7c628b0
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user