From 5b5ac92de57bd60cc8d1f2178e41eb05392d11b5 Mon Sep 17 00:00:00 2001 From: addmix <38119387+addmix@users.noreply.github.com> Date: Fri, 1 Dec 2023 01:39:50 -0700 Subject: [PATCH] Prevent Camera3D.current from being set to true automatically in the editor. --- scene/3d/camera_3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/camera_3d.cpp b/scene/3d/camera_3d.cpp index 8dc17a1c628..c66d9bd2c9a 100644 --- a/scene/3d/camera_3d.cpp +++ b/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); } }