From b1ef5dee93d9aa585544e271721f9b84ebf903a9 Mon Sep 17 00:00:00 2001 From: Mnikolenko ProductEngine Date: Tue, 4 Nov 2014 13:07:14 +0200 Subject: MAINT-4619 FIXED Using Align Planar Faces on flexible prims causes viewer to crash --- indra/newview/llface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 32b510b21a..2182b619be 100755 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -956,6 +956,10 @@ void LLFace::getPlanarProjectedParams(LLQuaternion* face_rot, LLVector3* face_po const LLVolumeFace& vf = getViewerObject()->getVolume()->getVolumeFace(mTEOffset); const LLVector4a& normal4a = vf.mNormals[0]; const LLVector4a& tangent = vf.mTangents[0]; + if (!&tangent) + { + return; + } LLVector4a binormal4a; binormal4a.setCross3(normal4a, tangent); -- cgit v1.2.3