From 12251a3a15f537e6102a9ffe9a02a1b930d48e99 Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Thu, 9 Nov 2017 20:45:18 -0600 Subject: [PATCH] Fix theme with custom font. --- editor/editor_fonts.cpp | 5 ----- editor/editor_themes.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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 != "") {