From a657920fba20ed557eba40575cf54d065f8bc9bd Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Fri, 4 Dec 2009 00:54:40 +0000 Subject: Fix for [#20229] Booleans crash on edge case. --- intern/boolop/intern/BOP_Face2Face.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'intern/boolop') diff --git a/intern/boolop/intern/BOP_Face2Face.cpp b/intern/boolop/intern/BOP_Face2Face.cpp index 38841e34567..78ccc0ba987 100644 --- a/intern/boolop/intern/BOP_Face2Face.cpp +++ b/intern/boolop/intern/BOP_Face2Face.cpp @@ -310,7 +310,7 @@ void BOP_intersectCoplanarFaces(BOP_Mesh* mesh, } MT_Vector3 p3p1 = p1-p3; - MT_Plane3 plane3((p3p1.cross(normal).normalized()),p3); + MT_Plane3 plane3((p3p1.cross(normal).safe_normalized()),p3); sA.m_cfg1 = BOP_Segment::createVertexCfg(3); sA.m_v1 = faceA->getVertex(2); @@ -528,7 +528,7 @@ void BOP_mergeSort(MT_Point3 *points, unsigned int *face, unsigned int &size, bo invertB = false; if (face[1] == 1) { - // invertA¿? + // invertAø? for(i=0;i