fixed Camera2D rotation with non-square zoom
(cherry picked from commit b9c0897713
)
This commit is contained in:
parent
922136b30d
commit
b7a712d9f3
1 changed files with 1 additions and 1 deletions
|
@ -200,10 +200,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()*/);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue