Skip to content

Commit 4b3c533

Browse files
Make errors override warnings in script line coloring
1 parent 19bb187 commit 4b3c533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/plugins/script_text_editor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ void ScriptTextEditor::_validate_script() {
575575
script_is_valid = true;
576576
}
577577
_update_connected_methods();
578-
_update_errors();
579578
_update_warnings();
579+
_update_errors();
580580

581581
emit_signal(SNAME("name_changed"));
582582
emit_signal(SNAME("edited_script_changed"));
@@ -1806,8 +1806,8 @@ void ScriptTextEditor::_notification(int p_what) {
18061806
break;
18071807
}
18081808
if (is_visible_in_tree()) {
1809-
_update_errors();
18101809
_update_warnings();
1810+
_update_errors();
18111811
}
18121812
[[fallthrough]];
18131813
case NOTIFICATION_ENTER_TREE: {

0 commit comments

Comments
 (0)