From 75355c90db0726298e813bfa862bdd4f67f86370 Mon Sep 17 00:00:00 2001 From: TechnoArt Studio <71520126+TechnoArtStudio@users.noreply.github.com> Date: Mon, 30 Nov 2020 21:28:58 +0100 Subject: [PATCH] Fixing and removing Camera 2D notification cases --- scene/2d/camera_2d.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/scene/2d/camera_2d.cpp b/scene/2d/camera_2d.cpp index 50d87a7489b5..803f6109466e 100644 --- a/scene/2d/camera_2d.cpp +++ b/scene/2d/camera_2d.cpp @@ -220,18 +220,8 @@ Transform2D Camera2D::get_camera_transform() { void Camera2D::_notification(int p_what) { switch (p_what) { - - case NOTIFICATION_INTERNAL_PROCESS: - case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: { - - _update_scroll(); - - } break; case NOTIFICATION_TRANSFORM_CHANGED: { - - if (!is_processing_internal() && !is_physics_processing_internal()) - _update_scroll(); - + _update_scroll(); } break; case NOTIFICATION_ENTER_TREE: {