From 0d55a30eb1dbff541e51d5104d76ec09459d59a1 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Thu, 28 Jul 2022 11:48:53 +0100 Subject: [PATCH] When Camera2D enters tree, ensure first update is not lost --- scene/2d/camera_2d.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene/2d/camera_2d.cpp b/scene/2d/camera_2d.cpp index dbfd61b6c..05981f526 100644 --- a/scene/2d/camera_2d.cpp +++ b/scene/2d/camera_2d.cpp @@ -255,9 +255,8 @@ void Camera2D::_notification(int p_what) { // if a camera enters the tree that is set to current, // it should take over as the current camera, and mark // all other cameras as non current - _set_current(current); - first = true; + _set_current(current); } break; case NOTIFICATION_EXIT_TREE: {