Good while it lasted, restored full 3D for 2D viewport, as required for Canvas BG mode. Fixes #14540

This commit is contained in:
Juan Linietsky 2017-12-19 15:59:32 -03:00
parent 3ca06e1184
commit bf47b15e2c

View File

@ -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);