소스 검색

Merge pull request #85594 from addmix/camera3d-current-bug

Prevent `Camera3D.current` from being set to `true` automatically in the editor.
Yuri Sizov 1 년 전
부모
커밋
252c462a9d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scene/3d/camera_3d.cpp

+ 1 - 1
scene/3d/camera_3d.cpp

@@ -272,7 +272,7 @@ void Camera3D::clear_current(bool p_enable_next) {
 	if (get_viewport()->get_camera_3d() == this) {
 		get_viewport()->_camera_3d_set(nullptr);
 
-		if (p_enable_next) {
+		if (p_enable_next && !Engine::get_singleton()->is_editor_hint()) {
 			get_viewport()->_camera_3d_make_next_current(this);
 		}
 	}