소스 검색

Add check to prevent "p_gutter = -1" error spam

nova++ 3 년 전
부모
커밋
ce66f8a7a0
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      editor/plugins/script_text_editor.cpp

+ 3 - 0
editor/plugins/script_text_editor.cpp

@@ -1335,6 +1335,9 @@ void ScriptTextEditor::_change_syntax_highlighter(int p_idx) {
 void ScriptTextEditor::_notification(int p_what) {
 	switch (p_what) {
 		case NOTIFICATION_THEME_CHANGED:
+			if (!editor_enabled) {
+				break;
+			}
 			if (is_visible_in_tree()) {
 				_update_warnings();
 				_update_errors();