summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-20 16:07:09 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-20 16:07:09 +0200
commitefc7c628b06771773f89eb0030666fab6fa62e19 (patch)
tree23907f73269a2dfd2ed21d78d8d928e6341ee7e0 /scene
parent8ea7f5eac26121733fe0f6ee25406fd68608c01f (diff)
parentf169616cc6b394b5ba95e2d1d99f217552dab60f (diff)
downloadredot-engine-efc7c628b06771773f89eb0030666fab6fa62e19.tar.gz
Merge pull request #97224 from timothyqiu/transition-names
Update `AnimationTree` parameter list when updating `AnimationNodeTransition` input names
Diffstat (limited to 'scene')
-rw-r--r--scene/animation/animation_blend_tree.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp
index cdc85d2b2d..a96417738f 100644
--- a/scene/animation/animation_blend_tree.cpp
+++ b/scene/animation/animation_blend_tree.cpp
@@ -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) {