mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
fixed automatic anchor vertex choice when dragging geometry
This commit is contained in:
parent
b92b5226ef
commit
abb89a4944
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ namespace CodeImp.DoomBuilder.BuilderModes.Editing
|
|||
public DragLinedefsMode(EditMode basemode, Linedef dragitem, Vector2D dragstartmappos)
|
||||
{
|
||||
// Get the nearest vertex for snapping
|
||||
Vertex nearest = General.Map.Map.NearestVertex(dragstartmappos);
|
||||
Vertex nearest = MapSet.NearestVertex(General.Map.Map.GetVerticesFromLinesSelection(true), dragstartmappos);
|
||||
|
||||
// Get selected lines
|
||||
selectedlines = General.Map.Map.GetLinedefsSelection(true);
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace CodeImp.DoomBuilder.BuilderModes.Editing
|
|||
public DragSectorsMode(EditMode basemode, Sector dragitem, Vector2D dragstartmappos)
|
||||
{
|
||||
// Get the nearest vertex for snapping
|
||||
Vertex nearest = General.Map.Map.NearestVertex(dragstartmappos);
|
||||
Vertex nearest = MapSet.NearestVertex(General.Map.Map.GetVerticesFromLinesSelection(true), dragstartmappos);
|
||||
|
||||
// Get selected lines
|
||||
selectedlines = General.Map.Map.GetLinedefsSelection(true);
|
||||
|
|
Loading…
Reference in a new issue