Browse Source

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

vitika9 4 years ago
parent
commit
22eaec6895
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/2d/camera_2d.cpp

+ 1 - 1
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() {