summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-29 23:47:53 +0200
committerGitHub <noreply@github.com>2021-06-29 23:47:53 +0200
commit03788e9f1800ced6e8298be9e0be784fc7e67cc1 (patch)
treedd46a26b78e4fb92f78b4cdac3a3acb9ca95607c /editor
parent916c37de09871be0f5578f2f23f700ecaa08f836 (diff)
parentd07f7c8d2516a338547dc4bbd73e17d3b357c8d7 (diff)
Merge pull request #50007 from reduz/fix-2d-viewport
Fixes to 2D viewport
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp3
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);