From 22eaec689513827a1a9cf22d1c016324762f6af5 Mon Sep 17 00:00:00 2001 From: vitika9 Date: Tue, 27 Jul 2021 16:29:30 +0530 Subject: [PATCH] Fixed Camera2D's reset_smoothing() does not work as described --- scene/2d/camera_2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/2d/camera_2d.cpp b/scene/2d/camera_2d.cpp index 0e559159575..2219437c141 100644 --- a/scene/2d/camera_2d.cpp +++ b/scene/2d/camera_2d.cpp @@ -483,8 +483,8 @@ void Camera2D::force_update_scroll() { } void Camera2D::reset_smoothing() { - smoothed_camera_pos = camera_pos; _update_scroll(); + smoothed_camera_pos = camera_pos; } void Camera2D::align() {