Merge pull request #43786 from greenfox1505/3.2_Fix-Camera2D-ZoomRotation-Master

fixed Camera2D rotation with non-square zoom
This commit is contained in:
Rémi Verschelde 2020-11-24 08:38:16 +01:00 committed by GitHub
commit 43e383e656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,10 +198,10 @@ Transform2D Camera2D::get_camera_transform() {
camera_screen_center = screen_rect.position + screen_rect.size * 0.5;
Transform2D xform;
xform.scale_basis(zoom);
if (rotating) {
xform.set_rotation(angle);
}
xform.scale_basis(zoom);
xform.set_origin(screen_rect.position /*.floor()*/);
/*