Change viewport type after using create root menu

Change viewport type (2D/3D) according to the type of node just created
from the "Create Root Node" menu.
This commit is contained in:
JFonS 2018-09-20 10:44:58 +02:00
parent 4fca3fe180
commit a100b320c2
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: {