fixed automatic anchor vertex choice when dragging geometry

This commit is contained in:
codeimp 2008-04-07 12:20:48 +00:00
parent b92b5226ef
commit abb89a4944
2 changed files with 2 additions and 2 deletions

View file

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

View file

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