Browse Source

Merge pull request #106297 from GlitchedCode922/GodotWarningFix/master

Make errors override warnings in script line coloring
Rémi Verschelde 2 months ago
parent
commit
13a0e28f5b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      editor/plugins/script_text_editor.cpp

+ 2 - 2
editor/plugins/script_text_editor.cpp

@@ -575,8 +575,8 @@ void ScriptTextEditor::_validate_script() {
 		script_is_valid = true;
 	}
 	_update_connected_methods();
-	_update_errors();
 	_update_warnings();
+	_update_errors();
 
 	emit_signal(SNAME("name_changed"));
 	emit_signal(SNAME("edited_script_changed"));
@@ -1806,8 +1806,8 @@ void ScriptTextEditor::_notification(int p_what) {
 				break;
 			}
 			if (is_visible_in_tree()) {
-				_update_errors();
 				_update_warnings();
+				_update_errors();
 			}
 			[[fallthrough]];
 		case NOTIFICATION_ENTER_TREE: {