mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
We should only snap pasted selection to grid when snap to grid setting is enabled...
This commit is contained in:
parent
6c639c029b
commit
4698280418
1 changed files with 4 additions and 1 deletions
|
@ -982,7 +982,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Mouse in screen?
|
||||
if(mouseinside)
|
||||
{
|
||||
offset = General.Map.Grid.SnappedToGrid(mousemappos - size / 2); //mxd
|
||||
offset = mousemappos - size / 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -990,6 +990,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
offset = viewmappos - size / 2;
|
||||
}
|
||||
|
||||
if(General.Interface.SnapToGrid) //mxd
|
||||
offset = General.Map.Grid.SnappedToGrid(offset);
|
||||
|
||||
UpdateGeometry();
|
||||
General.Map.Data.UpdateUsedTextures();
|
||||
|
||||
|
|
Loading…
Reference in a new issue