summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-07-30 23:37:07 +0200
committerGitHub <noreply@github.com>2021-07-30 23:37:07 +0200
commit63be3c1f006c0f033925c3fe9afe5ba39f4df0ea (patch)
treebb2ac43c70f799b9a998c6d41d2dccd8b8f8a3e9 /scene
parenta35b4bf3eabb3b917a7bf990a80541f52d18ec14 (diff)
parent22eaec689513827a1a9cf22d1c016324762f6af5 (diff)
downloadredot-engine-63be3c1f006c0f033925c3fe9afe5ba39f4df0ea.tar.gz
Merge pull request #50935 from Vitika9/50807
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/camera_2d.cpp2
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() {