From 83f7eaa62db7ee76d93c91f26b7af3bda7c06830 Mon Sep 17 00:00:00 2001 From: keptsecret Date: Sat, 12 Mar 2022 15:38:43 -0500 Subject: [PATCH] don't show frame time panel across restarts --- editor/plugins/node_3d_editor_plugin.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 3927aaa4384..6a0539e9f81 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -3541,14 +3541,6 @@ void Node3DEditorViewport::set_state(const Dictionary &p_state) { _menu_option(VIEW_INFORMATION); } } - if (p_state.has("frame_time")) { - bool fps = p_state["frame_time"]; - - int idx = view_menu->get_popup()->get_item_index(VIEW_FRAME_TIME); - if (view_menu->get_popup()->is_item_checked(idx) != fps) { - _menu_option(VIEW_FRAME_TIME); - } - } if (p_state.has("half_res")) { bool half_res = p_state["half_res"]; @@ -3603,7 +3595,6 @@ Dictionary Node3DEditorViewport::get_state() const { d["doppler"] = view_menu->get_popup()->is_item_checked(view_menu->get_popup()->get_item_index(VIEW_AUDIO_DOPPLER)); d["gizmos"] = view_menu->get_popup()->is_item_checked(view_menu->get_popup()->get_item_index(VIEW_GIZMOS)); d["information"] = view_menu->get_popup()->is_item_checked(view_menu->get_popup()->get_item_index(VIEW_INFORMATION)); - d["frame_time"] = view_menu->get_popup()->is_item_checked(view_menu->get_popup()->get_item_index(VIEW_FRAME_TIME)); d["half_res"] = subviewport_container->get_stretch_shrink() > 1; d["cinematic_preview"] = view_menu->get_popup()->is_item_checked(view_menu->get_popup()->get_item_index(VIEW_CINEMATIC_PREVIEW)); if (previewing) {