mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-21 11:20:58 +00:00
Filter old lines and vertices by edited area when drawing geometry lines
This commit is contained in:
parent
1d65205a6b
commit
160dde12cf
1 changed files with 8 additions and 1 deletions
|
@ -1093,7 +1093,14 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
map.BeginAddRemove();
|
||||
MapSet.JoinVertices(mergeverts, MapSet.STITCH_DISTANCE); //mxd
|
||||
map.EndAddRemove();
|
||||
|
||||
|
||||
// Filter old lines and vertices by edited area
|
||||
RectangleF editarea = MapSet.CreateArea(newlines);
|
||||
editarea = MapSet.IncreaseArea(editarea, mergeverts);
|
||||
editarea.Inflate(1.0f, 1.0f);
|
||||
oldlines = new List<Linedef>(MapSet.FilterByArea(oldlines, ref editarea));
|
||||
nonmergeverts = new List<Vertex>(MapSet.FilterByArea(nonmergeverts, ref editarea));
|
||||
|
||||
/***************************************************\
|
||||
Find a way to close the drawing
|
||||
\***************************************************/
|
||||
|
|
Loading…
Reference in a new issue