Skip to content

Commit e58b10c

Browse files
committed
Implements "Batch Rename" editor tool.
1 parent c58891f commit e58b10c

7 files changed

+831
-5
lines changed

editor/editor_data.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ Array EditorSelection::_get_transformable_selected_nodes() {
867867
return ret;
868868
}
869869

870-
Array EditorSelection::_get_selected_nodes() {
870+
Array EditorSelection::get_selected_nodes() {
871871

872872
Array ret;
873873

@@ -885,7 +885,7 @@ void EditorSelection::_bind_methods() {
885885
ClassDB::bind_method(D_METHOD("clear"), &EditorSelection::clear);
886886
ClassDB::bind_method(D_METHOD("add_node", "node"), &EditorSelection::add_node);
887887
ClassDB::bind_method(D_METHOD("remove_node", "node"), &EditorSelection::remove_node);
888-
ClassDB::bind_method(D_METHOD("get_selected_nodes"), &EditorSelection::_get_selected_nodes);
888+
ClassDB::bind_method(D_METHOD("get_selected_nodes"), &EditorSelection::get_selected_nodes);
889889
ClassDB::bind_method(D_METHOD("get_transformable_selected_nodes"), &EditorSelection::_get_transformable_selected_nodes);
890890
ClassDB::bind_method(D_METHOD("_emit_change"), &EditorSelection::_emit_change);
891891
ADD_SIGNAL(MethodInfo("selection_changed"));

editor/editor_data.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,14 @@ class EditorSelection : public Object {
224224
List<Node *> selected_node_list;
225225

226226
void _update_nl();
227-
Array _get_selected_nodes();
228227
Array _get_transformable_selected_nodes();
229228
void _emit_change();
230229

231230
protected:
232231
static void _bind_methods();
233232

234233
public:
234+
Array get_selected_nodes();
235235
void add_node(Node *p_node);
236236
void remove_node(Node *p_node);
237237
bool is_selected(Node *) const;

0 commit comments

Comments
 (0)