Fix clearing errors indication in the shader editor

This commit is contained in:
Yuri Rubinsky 2022-07-23 11:32:04 +03:00
parent 7c225f5bfe
commit 5705825d55

View file

@ -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