You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
SceneTree: Fix reparent crash with animation tracks renaming disabled
This check was there since the first commit in 2014, but a later feature added in 2018 with #17717 did not properly update the code while adding non animation-related code in `perform_node_renames`. Fixes #40532.
This commit is contained in:
@@ -1270,10 +1270,6 @@ void SceneTreeDock::_fill_path_renames(Vector<StringName> base_path, Vector<Stri
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SceneTreeDock::fill_path_renames(Node *p_node, Node *p_new_parent, List<Pair<NodePath, NodePath>> *p_renames) {
|
void SceneTreeDock::fill_path_renames(Node *p_node, Node *p_new_parent, List<Pair<NodePath, NodePath>> *p_renames) {
|
||||||
if (!bool(EDITOR_DEF("editors/animation/autorename_animation_tracks", true))) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Vector<StringName> base_path;
|
Vector<StringName> base_path;
|
||||||
Node *n = p_node->get_parent();
|
Node *n = p_node->get_parent();
|
||||||
while (n) {
|
while (n) {
|
||||||
|
|||||||
Reference in New Issue
Block a user