Skip to content

Commit 2b4dc9c

Browse files
committed
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, and delete "run", it would also clear the parameters both.
1 parent a864370 commit 2b4dc9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scene/animation/animation_tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ void AnimationTree::_animation_node_renamed(const ObjectID &p_oid, const String
782782

783783
void AnimationTree::_animation_node_removed(const ObjectID &p_oid, const StringName &p_node) {
784784
for (const StringName &parent_path : instance_paths[p_oid]) {
785-
String base_path = String(parent_path) + String(p_node);
785+
String base_path = String(parent_path) + String(p_node) + "/";
786786

787787
for (const PropertyInfo &E : properties) {
788788
if (E.name.begins_with(base_path)) {

0 commit comments

Comments
 (0)