diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2020-07-14 13:21:53 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2020-07-14 13:21:53 +0100 |
commit | ccab210fb5c6291eca8fb496bad3b521269b1216 (patch) | |
tree | 2c1208c127274c122744a45a0ea45e193195250a /editor | |
parent | c2ed367d4981506cae8f351a2a56db87b98d6d94 (diff) |
Fixed visual shader editor not clearing colour regions
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index ea6c5edcef..d987f6f7c0 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -1711,6 +1711,7 @@ void VisualShaderEditor::_notification(int p_what) { preview_text->add_theme_font_override("font", get_theme_font("expression", "EditorFonts")); preview_text->add_theme_color_override("font_color", text_color); syntax_highlighter->set_symbol_color(symbol_color); + syntax_highlighter->clear_color_regions(); syntax_highlighter->add_color_region("/*", "*/", comment_color, false); syntax_highlighter->add_color_region("//", "", comment_color, false); |