diff options
author | Dave Parks <davep@lindenlab.com> | 2013-06-21 17:07:37 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-06-21 17:07:37 -0500 |
commit | 4696eeeb30ce4d01c3bcbe74c9024f05d848968a (patch) | |
tree | 36910d1bf144e91a6a95d4bc091bb8603d7e5c24 /indra/newview/llface.cpp | |
parent | 79029149a415a9f32e08d378653199a880d21e65 (diff) |
Merge cleanup.
Diffstat (limited to 'indra/newview/llface.cpp')
-rwxr-xr-x | indra/newview/llface.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 606a595ca4..b2e3300ab3 100755 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -2053,17 +2053,18 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume, mask.clear(); mask.setElement<3>(); - LLVector4a* src = vf.mBinormals; - LLVector4a* end = vf.mBinormals+num_vertices; + LLVector4a* src = vf.mTangents; + LLVector4a* end = vf.mTangents+num_vertices; while (src < end) { LLVector4a tangent_out; - mat_normal.rotate(vf.mTangents[i], tangent_out); + mat_normal.rotate(*src, tangent_out); tangent_out.normalize3fast(); - tangent_out.setSelectWithMask(mask, vf.mTangents[i], tangent_out); + tangent_out.setSelectWithMask(mask, *src, tangent_out); tangent_out.store4a(tangents); + src++; tangents += 4; } |