diff options
author | vitika9 <vitika.program@gmail.com> | 2021-07-27 16:29:30 +0530 |
---|---|---|
committer | vitika9 <vitika.program@gmail.com> | 2021-07-27 16:29:30 +0530 |
commit | 22eaec689513827a1a9cf22d1c016324762f6af5 (patch) | |
tree | 81c9175bc6c2058592e511822234944cdd0366ab | |
parent | 77ca5e7b217c9ff1160f24a720d9e7a488e426f4 (diff) |
Fixed Camera2D's reset_smoothing() does not work as described
-rw-r--r-- | scene/2d/camera_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/camera_2d.cpp b/scene/2d/camera_2d.cpp index 0e55915957..2219437c14 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() { |