diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index 036e6a6860..b60ea0f798 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -3211,6 +3211,8 @@ void ScriptEditor::set_window_layout(Ref p_layout) { HashSet loaded_scripts; List extensions = _get_recognized_extensions(); + _set_script_zoom_factor(p_layout->get_value("ScriptEditor", "zoom_factor", 1.0f)); + for (const Variant &v : scripts) { String path = v; @@ -3306,8 +3308,6 @@ void ScriptEditor::set_window_layout(Ref p_layout) { } } - _set_script_zoom_factor(p_layout->get_value("ScriptEditor", "zoom_factor", 1.0f)); - restoring_layout = false; _update_script_names();