From 136f94fa24bc12ce86ffa354542625947bc6d1e7 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Fri, 5 Mar 2021 15:46:26 +0000 Subject: [PATCH] Fix Camera2D frame delay Fixes camera frame delay by always doing a scroll update except when smoothing is active. --- scene/2d/camera_2d.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/2d/camera_2d.cpp b/scene/2d/camera_2d.cpp index ca16244ad6..178bb90075 100644 --- a/scene/2d/camera_2d.cpp +++ b/scene/2d/camera_2d.cpp @@ -231,8 +231,9 @@ void Camera2D::_notification(int p_what) { } break; case NOTIFICATION_TRANSFORM_CHANGED: { - if (!is_processing_internal() && !is_physics_processing_internal()) + if (!smoothing_enabled || Engine::get_singleton()->is_editor_hint()) { _update_scroll(); + } } break; case NOTIFICATION_ENTER_TREE: {