mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-21 03:11:40 +00:00
Fixed a problem where grid transform didn't work when the new origin had an x value of 0. Fixes #769
This commit is contained in:
parent
d597c11e1f
commit
c1e69eb548
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
public static Vector2D SnappedToGrid(Vector2D v, double gridsize, double gridsizeinv, double gridrotate = 0.0f, double gridoriginx = 0, double gridoriginy = 0)
|
||||
{
|
||||
Vector2D origin = new Vector2D(gridoriginx, gridoriginy);
|
||||
bool transformed = Math.Abs(gridrotate) > 1e-4 || gridoriginx != 0 || gridoriginx != 0;
|
||||
bool transformed = Math.Abs(gridrotate) > 1e-4 || gridoriginx != 0 || gridoriginy != 0;
|
||||
if (transformed)
|
||||
{
|
||||
// Grid is transformed, so reverse the transformation first
|
||||
|
|
Loading…
Reference in a new issue