diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 468d4e3c0fa..4d75e06ff9b 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -4251,8 +4251,7 @@ bool Viewport::_camera_3d_add(Camera3D *p_camera) { void Viewport::_camera_3d_remove(Camera3D *p_camera) { camera_3d_set.erase(p_camera); if (camera_3d == p_camera) { - camera_3d->notification(Camera3D::NOTIFICATION_LOST_CURRENT); - camera_3d = nullptr; + _camera_3d_set(nullptr); } }