We should only snap pasted selection to grid when snap to grid setting is enabled...

This commit is contained in:
MaxED 2013-11-01 11:14:42 +00:00
parent 6c639c029b
commit 4698280418

View file

@ -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();