diff options
author | Dave Parks <davep@lindenlab.com> | 2010-04-27 01:50:06 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-04-27 01:50:06 -0500 |
commit | 07c0389f50ccef13ad2699e149dc4b87de3dbd70 (patch) | |
tree | 19176dc80d8859e1f2366b3a6656690a504a0fc2 /indra/llmath/llvolume.cpp | |
parent | c0a2a44a44c5d6db39cfa5fdb5630578d4c2d267 (diff) |
Proper byte ordering when decoding skin weights.
Diffstat (limited to 'indra/llmath/llvolume.cpp')
-rw-r--r-- | indra/llmath/llvolume.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index fdd48b9e9e..9d2d157c76 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -2028,8 +2028,7 @@ bool LLVolume::unpackVolumeFaces(std::istream& is, S32 size) while (joint != END_INFLUENCES) { U16 influence = weights[idx++]; - influence = influence << 8; - influence |= weights[idx++]; + influence |= ((U16) weights[idx++] << 8); F32 w = llmin((F32) influence / 65535.f, 0.99999f); face.mWeights[cur_vertex].mV[cur_influence++] = (F32) joint + w; |