Merge pull request #38695 from dreamsComeTrue/node-swap-order-arguments

Replace 'add_child_below_node' with 'add_sibling' in Node
This commit is contained in:
Rémi Verschelde 2020-05-17 11:36:05 +02:00 committed by GitHub
commit 4c8832701b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 20 deletions

View file

@ -579,7 +579,8 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
dup->set_name(parent->validate_child_name(dup));
editor_data->get_undo_redo().add_do_method(parent, "add_child_below_node", add_below_node, dup);
editor_data->get_undo_redo().add_do_method(add_below_node, "add_sibling", dup);
for (List<Node *>::Element *F = owned.front(); F; F = F->next()) {
if (!duplimap.has(F->get())) {
continue;