소스 검색

Merge pull request #54330 from LennyPhoenix/lennyphoenix-patch-1

Rémi Verschelde 3 년 전
부모
커밋
86e0a0674a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      scene/gui/control.cpp

+ 2 - 0
scene/gui/control.cpp

@@ -471,6 +471,8 @@ void Control::_notification(int p_notification) {
 			_size_changed();
 		} break;
 		case NOTIFICATION_EXIT_TREE: {
+			ERR_FAIL_COND(!get_viewport());
+
 			get_viewport()->_gui_remove_control(this);
 
 		} break;