Merge pull request #54816 from KoBeWi/brute_rename
This commit is contained in:
commit
55b49dc71b
|
@ -214,7 +214,7 @@ void SceneTreeDock::_perform_instantiate_scenes(const Vector<String> &p_files, N
|
||||||
for (int i = 0; i < instances.size(); i++) {
|
for (int i = 0; i < instances.size(); i++) {
|
||||||
Node *instantiated_scene = instances[i];
|
Node *instantiated_scene = instances[i];
|
||||||
|
|
||||||
editor_data->get_undo_redo().add_do_method(parent, "add_child", instantiated_scene);
|
editor_data->get_undo_redo().add_do_method(parent, "add_child", instantiated_scene, true);
|
||||||
if (p_pos >= 0) {
|
if (p_pos >= 0) {
|
||||||
editor_data->get_undo_redo().add_do_method(parent, "move_child", instantiated_scene, p_pos + i);
|
editor_data->get_undo_redo().add_do_method(parent, "move_child", instantiated_scene, p_pos + i);
|
||||||
}
|
}
|
||||||
|
@ -259,8 +259,8 @@ void SceneTreeDock::_replace_with_branch_scene(const String &p_file, Node *base)
|
||||||
int pos = base->get_index();
|
int pos = base->get_index();
|
||||||
undo_redo->add_do_method(parent, "remove_child", base);
|
undo_redo->add_do_method(parent, "remove_child", base);
|
||||||
undo_redo->add_undo_method(parent, "remove_child", instantiated_scene);
|
undo_redo->add_undo_method(parent, "remove_child", instantiated_scene);
|
||||||
undo_redo->add_do_method(parent, "add_child", instantiated_scene);
|
undo_redo->add_do_method(parent, "add_child", instantiated_scene, true);
|
||||||
undo_redo->add_undo_method(parent, "add_child", base);
|
undo_redo->add_undo_method(parent, "add_child", base, true);
|
||||||
undo_redo->add_do_method(parent, "move_child", instantiated_scene, pos);
|
undo_redo->add_do_method(parent, "move_child", instantiated_scene, pos);
|
||||||
undo_redo->add_undo_method(parent, "move_child", base, pos);
|
undo_redo->add_undo_method(parent, "move_child", base, pos);
|
||||||
|
|
||||||
|
@ -512,7 +512,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
||||||
|
|
||||||
ERR_CONTINUE(!dup);
|
ERR_CONTINUE(!dup);
|
||||||
|
|
||||||
editor_data->get_undo_redo().add_do_method(paste_parent, "add_child", dup);
|
editor_data->get_undo_redo().add_do_method(paste_parent, "add_child", dup, true);
|
||||||
|
|
||||||
for (KeyValue<const Node *, Node *> &E2 : duplimap) {
|
for (KeyValue<const Node *, Node *> &E2 : duplimap) {
|
||||||
Node *d = E2.value;
|
Node *d = E2.value;
|
||||||
|
@ -814,7 +814,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
||||||
editor_data->get_undo_redo().create_action(TTR("Make node as Root"));
|
editor_data->get_undo_redo().create_action(TTR("Make node as Root"));
|
||||||
editor_data->get_undo_redo().add_do_method(node->get_parent(), "remove_child", node);
|
editor_data->get_undo_redo().add_do_method(node->get_parent(), "remove_child", node);
|
||||||
editor_data->get_undo_redo().add_do_method(editor, "set_edited_scene", node);
|
editor_data->get_undo_redo().add_do_method(editor, "set_edited_scene", node);
|
||||||
editor_data->get_undo_redo().add_do_method(node, "add_child", root);
|
editor_data->get_undo_redo().add_do_method(node, "add_child", root, true);
|
||||||
editor_data->get_undo_redo().add_do_method(node, "set_scene_file_path", root->get_scene_file_path());
|
editor_data->get_undo_redo().add_do_method(node, "set_scene_file_path", root->get_scene_file_path());
|
||||||
editor_data->get_undo_redo().add_do_method(root, "set_scene_file_path", String());
|
editor_data->get_undo_redo().add_do_method(root, "set_scene_file_path", String());
|
||||||
editor_data->get_undo_redo().add_do_method(node, "set_owner", (Object *)nullptr);
|
editor_data->get_undo_redo().add_do_method(node, "set_owner", (Object *)nullptr);
|
||||||
|
@ -825,7 +825,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
||||||
editor_data->get_undo_redo().add_undo_method(node, "set_scene_file_path", String());
|
editor_data->get_undo_redo().add_undo_method(node, "set_scene_file_path", String());
|
||||||
editor_data->get_undo_redo().add_undo_method(node, "remove_child", root);
|
editor_data->get_undo_redo().add_undo_method(node, "remove_child", root);
|
||||||
editor_data->get_undo_redo().add_undo_method(editor, "set_edited_scene", root);
|
editor_data->get_undo_redo().add_undo_method(editor, "set_edited_scene", root);
|
||||||
editor_data->get_undo_redo().add_undo_method(node->get_parent(), "add_child", node);
|
editor_data->get_undo_redo().add_undo_method(node->get_parent(), "add_child", node, true);
|
||||||
editor_data->get_undo_redo().add_undo_method(node->get_parent(), "move_child", node, node->get_index());
|
editor_data->get_undo_redo().add_undo_method(node->get_parent(), "move_child", node, node->get_index());
|
||||||
editor_data->get_undo_redo().add_undo_method(root, "set_owner", (Object *)nullptr);
|
editor_data->get_undo_redo().add_undo_method(root, "set_owner", (Object *)nullptr);
|
||||||
editor_data->get_undo_redo().add_undo_method(node, "set_owner", root);
|
editor_data->get_undo_redo().add_undo_method(node, "set_owner", root);
|
||||||
|
@ -1786,7 +1786,7 @@ void SceneTreeDock::_do_reparent(Node *p_new_parent, int p_position_in_parent, V
|
||||||
}
|
}
|
||||||
|
|
||||||
editor_data->get_undo_redo().add_do_method(node->get_parent(), "remove_child", node);
|
editor_data->get_undo_redo().add_do_method(node->get_parent(), "remove_child", node);
|
||||||
editor_data->get_undo_redo().add_do_method(new_parent, "add_child", node);
|
editor_data->get_undo_redo().add_do_method(new_parent, "add_child", node, true);
|
||||||
|
|
||||||
if (p_position_in_parent >= 0) {
|
if (p_position_in_parent >= 0) {
|
||||||
editor_data->get_undo_redo().add_do_method(new_parent, "move_child", node, p_position_in_parent + inc);
|
editor_data->get_undo_redo().add_do_method(new_parent, "move_child", node, p_position_in_parent + inc);
|
||||||
|
@ -1859,7 +1859,7 @@ void SceneTreeDock::_do_reparent(Node *p_new_parent, int p_position_in_parent, V
|
||||||
|
|
||||||
int child_pos = node->get_index();
|
int child_pos = node->get_index();
|
||||||
|
|
||||||
editor_data->get_undo_redo().add_undo_method(node->get_parent(), "add_child", node);
|
editor_data->get_undo_redo().add_undo_method(node->get_parent(), "add_child", node, true);
|
||||||
editor_data->get_undo_redo().add_undo_method(node->get_parent(), "move_child", node, child_pos);
|
editor_data->get_undo_redo().add_undo_method(node->get_parent(), "move_child", node, child_pos);
|
||||||
editor_data->get_undo_redo().add_undo_method(this, "_set_owners", edited_scene, owners);
|
editor_data->get_undo_redo().add_undo_method(this, "_set_owners", edited_scene, owners);
|
||||||
if (AnimationPlayerEditor::get_singleton()->get_track_editor()->get_root() == node) {
|
if (AnimationPlayerEditor::get_singleton()->get_track_editor()->get_root() == node) {
|
||||||
|
@ -2072,7 +2072,7 @@ void SceneTreeDock::_delete_confirm(bool p_cut) {
|
||||||
}
|
}
|
||||||
|
|
||||||
editor_data->get_undo_redo().add_do_method(n->get_parent(), "remove_child", n);
|
editor_data->get_undo_redo().add_do_method(n->get_parent(), "remove_child", n);
|
||||||
editor_data->get_undo_redo().add_undo_method(n->get_parent(), "add_child", n);
|
editor_data->get_undo_redo().add_undo_method(n->get_parent(), "add_child", n, true);
|
||||||
editor_data->get_undo_redo().add_undo_method(n->get_parent(), "move_child", n, n->get_index());
|
editor_data->get_undo_redo().add_undo_method(n->get_parent(), "move_child", n, n->get_index());
|
||||||
if (AnimationPlayerEditor::get_singleton()->get_track_editor()->get_root() == n) {
|
if (AnimationPlayerEditor::get_singleton()->get_track_editor()->get_root() == n) {
|
||||||
editor_data->get_undo_redo().add_undo_method(AnimationPlayerEditor::get_singleton()->get_track_editor(), "set_root", n);
|
editor_data->get_undo_redo().add_undo_method(AnimationPlayerEditor::get_singleton()->get_track_editor(), "set_root", n);
|
||||||
|
|
Loading…
Reference in New Issue