summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-23 10:59:06 +0200
committerGitHub <noreply@github.com>2022-07-23 10:59:06 +0200
commit01c866a5993d78d414b81836eec4051c27444b08 (patch)
treefe9c15c4c2d8026d5ce1045389e7e0e51b9e056e /editor/plugins
parent7c225f5bfe1f514d1998bf13f72fc1b0ec162ff6 (diff)
parent5705825d559dddb5acce3dabb0135579cf08c5eb (diff)
Merge pull request #63339 from Chaosus/shader_editor_fix
Fix clearing errors indication in the shader editor
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/shader_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp
index 4af44da35b..303b52c495 100644
--- a/editor/plugins/shader_editor_plugin.cpp
+++ b/editor/plugins/shader_editor_plugin.cpp
@@ -376,6 +376,7 @@ void ShaderTextEditor::_validate_script() {
get_text_editor()->set_line_background_color(i, Color(0, 0, 0, 0));
}
set_error("");
+ set_error_count(0);
if (last_compile_result != OK) {
//preprocessor error