diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2023-03-06 10:15:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 09:15:38 -0600 |
commit | 3377b19de43dfe0922174240a7844ba8f82eba23 (patch) | |
tree | 715de1f4dc853a5e969d69b5127094d120674efa /indra/llmath/llvolume.cpp | |
parent | 5a047bf3df34b6e1067df67bb19d8f9c2f846017 (diff) |
Fix double copy of tangents array (#107)
Diffstat (limited to 'indra/llmath/llvolume.cpp')
-rw-r--r-- | indra/llmath/llvolume.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 9919af5368..7a694ab10c 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -4863,17 +4863,6 @@ LLVolumeFace& LLVolumeFace::operator=(const LLVolumeFace& src) mTangents = NULL; } - if (src.mTangents) - { - allocateTangents(src.mNumVertices); - LLVector4a::memcpyNonAliased16((F32*)mTangents, (F32*)src.mTangents, vert_size); - } - else - { - ll_aligned_free_16(mTangents); - mTangents = nullptr; - } - if (src.mWeights) { llassert(!mWeights); // don't orphan an old alloc here accidentally |