ソースを参照

Fix clearing errors indication in the shader editor

Yuri Rubinsky 3 年 前
コミット
5705825d55
1 ファイル変更1 行追加0 行削除
  1. 1 0
      editor/plugins/shader_editor_plugin.cpp

+ 1 - 0
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