From 4b3c5336cda2ef47e24f3e9093c0af466dcb47a0 Mon Sep 17 00:00:00 2001 From: GlitchedCode <126592994+GlitchedCode922@users.noreply.github.com> Date: Mon, 12 May 2025 17:55:51 +0000 Subject: [PATCH] Make errors override warnings in script line coloring --- editor/plugins/script_text_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index acb1f65c68a..a53af27f022 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/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: {