浏览代码

Fixed Camera2D's reset_smoothing() does not work as described

(cherry picked from commit 22eaec689513827a1a9cf22d1c016324762f6af5)
vitika9 4 年之前
父节点
当前提交
bea67d7763
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/2d/camera_2d.cpp

+ 1 - 1
scene/2d/camera_2d.cpp

@@ -472,8 +472,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() {