Fix for smoothing camera2D when you change zoom, fix #2074.

This commit is contained in:
Guilherme Felipe 2015-09-03 19:23:39 -03:00
parent 7900d5daf2
commit da895e8542

View file

@ -57,7 +57,9 @@ void Camera2D::_update_scroll() {
void Camera2D::set_zoom(const Vector2 &p_zoom) {
zoom = p_zoom;
Point2 old_smoothed_camera_pos = smoothed_camera_pos;
_update_scroll();
smoothed_camera_pos = old_smoothed_camera_pos;
};
Vector2 Camera2D::get_zoom() const {