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:
parent
4fca3fe180
commit
a100b320c2
1 changed files with 2 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue