diff --git a/editor/editor_fonts.cpp b/editor/editor_fonts.cpp index 360c3e41614..7e20077fd61 100644 --- a/editor/editor_fonts.cpp +++ b/editor/editor_fonts.cpp @@ -180,9 +180,4 @@ void editor_register_fonts(Ref p_theme) { df_output_code->set_font_data(dfmono); MAKE_FALLBACKS(df_output_code); p_theme->set_font("status_source", "EditorFonts", df_output_code); - - //replace default theme - Ref di; - Ref ds; - fill_default_theme(p_theme, df, df_doc, di, ds, EDSCALE); } diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 220ee2b28fd..de0c3f55ccf 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -1045,7 +1045,7 @@ Ref create_editor_theme(const Ref p_theme) { } Ref create_custom_theme() { - Ref theme; + Ref theme = create_editor_theme(); String custom_theme = EditorSettings::get_singleton()->get("interface/theme/custom_theme"); if (custom_theme != "") {