Merge pull request #25549 from Zylann/fix_game_font_size_forced_to_13

Don't modify font which could potentially not be the editor one yet
This commit is contained in:
Rémi Verschelde 2019-02-08 12:13:05 +01:00 committed by GitHub
commit 39bc758bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,6 @@ void EditorLog::_notification(int p_what) {
} else if (p_what == NOTIFICATION_THEME_CHANGED) {
Ref<DynamicFont> df_output_code = get_font("output_source", "EditorFonts");
if (df_output_code.is_valid()) {
df_output_code->set_size(int(EDITOR_DEF("run/output/font_size", 13)) * EDSCALE);
if (log != NULL) {
log->add_font_override("normal_font", get_font("output_source", "EditorFonts"));
}