Merge pull request #63339 from Chaosus/shader_editor_fix

Fix clearing errors indication in the shader editor
This commit is contained in:
Rémi Verschelde 2022-07-23 10:59:06 +02:00 committed by GitHub
commit 01c866a599
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -376,6 +376,7 @@ void ShaderTextEditor::_validate_script() {
get_text_editor()->set_line_background_color(i, Color(0, 0, 0, 0)); get_text_editor()->set_line_background_color(i, Color(0, 0, 0, 0));
} }
set_error(""); set_error("");
set_error_count(0);
if (last_compile_result != OK) { if (last_compile_result != OK) {
//preprocessor error //preprocessor error