diff options
| author | geequlim | 2017-12-30 16:11:00 +0800 |
|---|---|---|
| committer | geequlim | 2017-12-30 17:30:37 +0800 |
| commit | bd0a9f4bd607a324eb2220502a506abad5f33c10 (patch) | |
| tree | 977f00361887950090ce450e4b79a4060bbc2e63 /editor/editor_log.cpp | |
| parent | 99960d929435423b25e9bfb55051af60edbfcca9 (diff) | |
| download | godot-bd0a9f4bd607a324eb2220502a506abad5f33c10.tar.gz godot-bd0a9f4bd607a324eb2220502a506abad5f33c10.tar.zst godot-bd0a9f4bd607a324eb2220502a506abad5f33c10.zip | |
Diffstat (limited to 'editor/editor_log.cpp')
| -rw-r--r-- | editor/editor_log.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index 407420d3d..86b3bb857 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -65,7 +65,9 @@ void EditorLog::_notification(int p_what) { 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); - log->add_font_override("normal_font", get_font("output_source", "EditorFonts")); + if (log != NULL) { + log->add_font_override("normal_font", get_font("output_source", "EditorFonts")); + } } } |
