From ec7ed5f36047c6f69d5e79f19a3a433aec3080fe Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 28 Apr 2018 09:47:16 -0300 Subject: Avoid CSG freeze condition on degenerates --- modules/csg/csg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/csg/csg.cpp b/modules/csg/csg.cpp index 761a309751..e2da66a9f4 100644 --- a/modules/csg/csg.cpp +++ b/modules/csg/csg.cpp @@ -409,6 +409,9 @@ void CSGBrushOperation::BuildPoly::clip(const CSGBrush *p_brush, int p_face, Mes //transform A points to 2D + if (segment[0].distance_to(segment[1]) < CMP_EPSILON) + return; //too small + _clip_segment(p_brush, p_face, segment, mesh_merge, p_for_B); } -- cgit v1.2.3