diff options
author | Dave Parks <davep@lindenlab.com> | 2010-10-26 16:20:00 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-10-26 16:20:00 -0500 |
commit | e75fd8beb15fb89e7aba253cac989b242566c512 (patch) | |
tree | dcc3704a1c428d310c350446dbb4ec0f49b46be5 /indra/llmath/llvolume.cpp | |
parent | 57cbcdc9ec9e8edf50bfea82efb63b3f8fab3cdc (diff) | |
parent | da04af47cc6e9f6acfcac0d2d6f1466b6f9baec2 (diff) |
merge
Diffstat (limited to 'indra/llmath/llvolume.cpp')
-rw-r--r-- | indra/llmath/llvolume.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 0fe309ddf3..a0874e859c 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -6139,6 +6139,14 @@ void LLVolumeFace::createBinormals() LLVector2* tc = (LLVector2*) mTexCoords; LLVector4a* binorm = (LLVector4a*) mBinormals; + LLVector4a* end = mBinormals+mNumVertices; + while (binorm < end) + { + (*binorm++).clear(); + } + + binorm = mBinormals; + for (U32 i = 0; i < mNumIndices/3; i++) { //for each triangle const U16& i0 = mIndices[i*3+0]; |