Explorar o código

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

(cherry picked from commit 22eaec689513827a1a9cf22d1c016324762f6af5)
vitika9 %!s(int64=4) %!d(string=hai) anos
pai
achega
bea67d7763
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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() {