1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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 //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); _clip_segment(p_brush, p_face, segment, mesh_merge, p_for_B);
} }