diff options
author | JFonS <joan.fonssanchez@gmail.com> | 2018-09-20 10:44:58 +0200 |
---|---|---|
committer | JFonS <joan.fonssanchez@gmail.com> | 2018-09-20 10:44:58 +0200 |
commit | a100b320c267286493d8553217bd862468843d41 (patch) | |
tree | 27e1b4b56827962934b410d4d33df24a3f13e1fa /editor | |
parent | 4fca3fe180fa7be4f8e1e4859f532c0d407432c7 (diff) |
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.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/scene_tree_dock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 1f5cd7fe0b..ff6832177e 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -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: { |