Skip to content
Snippets Groups Projects
Commit 160dde12 authored by sphere's avatar sphere
Browse files

Filter old lines and vertices by edited area when drawing geometry lines

parent 1d65205a
No related branches found
No related tags found
No related merge requests found
Pipeline #4191 passed
...@@ -1094,6 +1094,13 @@ namespace CodeImp.DoomBuilder.Geometry ...@@ -1094,6 +1094,13 @@ namespace CodeImp.DoomBuilder.Geometry
MapSet.JoinVertices(mergeverts, MapSet.STITCH_DISTANCE); //mxd MapSet.JoinVertices(mergeverts, MapSet.STITCH_DISTANCE); //mxd
map.EndAddRemove(); 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 Find a way to close the drawing
\***************************************************/ \***************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment