mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-03-12 12:12:04 +00:00
Fixed: in some cases dragging lines shorter than 1 mu or vertices belonging to such lines resulted in an infinite loop.
This commit is contained in:
parent
9d5abaf14f
commit
d1194019db
1 changed files with 5 additions and 0 deletions
|
@ -3042,6 +3042,11 @@ namespace CodeImp.DoomBuilder.Map
|
|||
intersection.x = (float)Math.Round(intersection.x, General.Map.FormatInterface.VertexDecimals);
|
||||
intersection.y = (float)Math.Round(intersection.y, General.Map.FormatInterface.VertexDecimals);
|
||||
|
||||
//mxd. Skip when intersection matches start/end position.
|
||||
// Otherwise infinite ammount of 0-length lines will be created...
|
||||
if( l1.Start.Position == intersection || l1.End.Position == intersection ||
|
||||
l2.Start.Position == intersection || l2.End.Position == intersection) continue;
|
||||
|
||||
//mxd. Do we already have a vertex here?
|
||||
bool existingvert = false;
|
||||
Vertex splitvertex = null;
|
||||
|
|
Loading…
Reference in a new issue