diff options
author | reduz <reduzio@gmail.com> | 2021-06-30 23:17:47 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-07-01 09:07:36 -0300 |
commit | 37776b28677ab4c4cb61047df1fe9816e9b63642 (patch) | |
tree | 01ddd72849a8d7b489237a2a2baa6f19f543a274 /editor/editor_node.cpp | |
parent | 5710adda72a08f81c4df00147f560eebacf3b473 (diff) |
Clean up RenderingServer and its bindings
* Rewrote bindings for RenderingServer.
* They are now all up to date.
* Several unused methods and deprecated features were cleaned up.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 31f84d2508..7d6021b0f6 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -591,8 +591,7 @@ void EditorNode::_notification(int p_what) { _initializing_addons = false; } - RenderingServer::get_singleton()->viewport_set_hide_scenario(get_scene_root()->get_viewport_rid(), true); - RenderingServer::get_singleton()->viewport_set_hide_canvas(get_scene_root()->get_viewport_rid(), true); + RenderingServer::get_singleton()->viewport_set_disable_2d(get_scene_root()->get_viewport_rid(), true); RenderingServer::get_singleton()->viewport_set_disable_environment(get_viewport()->get_viewport_rid(), true); feature_profile_manager->notify_changed(); @@ -6119,7 +6118,6 @@ EditorNode::EditorNode() { 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); scene_root->set_as_audio_listener_2d(true); |