Merge pull request #22273 from JFonS/change_viewport_create_root

Change viewport type after using create root menu
This commit is contained in:
Rémi Verschelde 2018-09-20 12:44:31 +02:00 committed by GitHub
commit cbe444ff18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -830,6 +830,8 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
editor_data->get_undo_redo().add_undo_method(editor, "set_edited_scene", (Object *)NULL);
editor_data->get_undo_redo().commit_action();
editor->edit_node(new_node);
} break;
default: {