summaryrefslogtreecommitdiffstats
path: root/editor/rename_dialog.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-06-15 13:20:49 +0200
committerkobewi <kobewi4e@gmail.com>2024-03-03 13:16:21 +0100
commitffadba0b0806eae62c59a37c4d8736bcbbf26ecd (patch)
tree2f62fecde46b01b0589e82464948285a852ffd5f /editor/rename_dialog.cpp
parentdad6c774b019ef8c5dccb4a1955c6a77b41a323e (diff)
downloadredot-engine-ffadba0b0806eae62c59a37c4d8736bcbbf26ecd.tar.gz
Allow to easily rename multiple nodes
Co-authored-by: ajreckof <tbonhoure@ymail.Com>
Diffstat (limited to 'editor/rename_dialog.cpp')
-rw-r--r--editor/rename_dialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/rename_dialog.cpp b/editor/rename_dialog.cpp
index 6a43d60cc7..e63b90c0ac 100644
--- a/editor/rename_dialog.cpp
+++ b/editor/rename_dialog.cpp
@@ -599,8 +599,7 @@ void RenameDialog::rename() {
ERR_PRINT("Skipping missing node: " + to_rename[i].first.get_concatenated_subnames());
continue;
}
-
- scene_tree_editor->call("_rename_node", n, new_name);
+ scene_tree_editor->rename_node(n, new_name);
}
undo_redo->commit_action();