mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Good while it lasted, restored full 3D for 2D viewport, as required for Canvas BG mode. Fixes #14540
This commit is contained in:
parent
3ca06e1184
commit
bf47b15e2c
@ -5033,7 +5033,7 @@ EditorNode::EditorNode() {
|
||||
scene_root_parent->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
||||
scene_root = memnew(Viewport);
|
||||
scene_root->set_usage(Viewport::USAGE_2D);
|
||||
//scene_root->set_usage(Viewport::USAGE_2D); canvas BG mode prevents usage of this as 2D
|
||||
scene_root->set_disable_3d(true);
|
||||
|
||||
VisualServer::get_singleton()->viewport_set_hide_scenario(scene_root->get_viewport_rid(), true);
|
||||
|
Loading…
Reference in New Issue
Block a user