diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-29 23:47:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-29 23:47:53 +0200 |
commit | 03788e9f1800ced6e8298be9e0be784fc7e67cc1 (patch) | |
tree | dd46a26b78e4fb92f78b4cdac3a3acb9ca95607c /editor | |
parent | 916c37de09871be0f5578f2f23f700ecaa08f836 (diff) | |
parent | d07f7c8d2516a338547dc4bbd73e17d3b357c8d7 (diff) |
Merge pull request #50007 from reduz/fix-2d-viewport
Fixes to 2D viewport
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 1bc04676b7..31f84d2508 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -6116,7 +6116,8 @@ EditorNode::EditorNode() { scene_root_parent->set_v_size_flags(Control::SIZE_EXPAND_FILL); scene_root = memnew(SubViewport); - //scene_root->set_usage(Viewport::USAGE_2D); canvas BG mode prevents usage of this as 2D + scene_root->set_embed_subwindows_hint(true); + scene_root->set_disable_3d(true); RenderingServer::get_singleton()->viewport_set_hide_scenario(scene_root->get_viewport_rid(), true); scene_root->set_disable_input(true); |