Avoid CSG freeze condition on degenerates

This commit is contained in:
Juan Linietsky 2018-04-28 09:47:16 -03:00
parent c4d0f528b1
commit ec7ed5f360

View file

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