From 0976e085f518bd1f1cf0b47a0ab84101b7c8c306 Mon Sep 17 00:00:00 2001 From: Ryan <73148864+Ryan-000@users.noreply.github.com> Date: Tue, 28 Apr 2026 16:21:09 -0400 Subject: [PATCH] Only erase properties for a specific node The current method would match too broadly. E.g. if you have a "running" and a "run" node, then delete "run", it would clear the parameters for both. --- scene/animation/animation_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 7addfb62523a..e2a14667332b 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -782,7 +782,7 @@ void AnimationTree::_animation_node_renamed(const ObjectID &p_oid, const String void AnimationTree::_animation_node_removed(const ObjectID &p_oid, const StringName &p_node) { for (const StringName &parent_path : instance_paths[p_oid]) { - String base_path = String(parent_path) + String(p_node); + String base_path = String(parent_path) + String(p_node) + "/"; for (const PropertyInfo &E : properties) { if (E.name.begins_with(base_path)) {