diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-14 16:31:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 16:31:36 +0200 |
commit | 46dcd4ebea481a0cdc9028f7409de9e9f967f71d (patch) | |
tree | 66272d70a05fd6e0d613e51c503efdb32c162042 /editor/plugins/visual_shader_editor_plugin.cpp | |
parent | 9bdcfc4e875ec57f425150e28878232aa2d086bc (diff) | |
parent | ccab210fb5c6291eca8fb496bad3b521269b1216 (diff) |
Merge pull request #40375 from Paulb23/fix_visual_shader_clearing_color_regions
Fixed visual shader editor not clearing colour regions
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-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); |