summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2014-11-04 13:07:14 +0200
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2014-11-04 13:07:14 +0200
commitb1ef5dee93d9aa585544e271721f9b84ebf903a9 (patch)
tree6307b2d7c65f91410f71dad5bb3331f6811fee8b
parent3b50cdd74c5870d3268ed30e342f13cf188a7841 (diff)
MAINT-4619 FIXED Using Align Planar Faces on flexible prims causes viewer to crash
-rwxr-xr-xindra/newview/llface.cpp4
1 files changed, 4 insertions, 0 deletions
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);