summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2015-10-21 19:20:28 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2015-10-21 19:20:28 -0400
commit8970e9c6cb43c270792c6f43d522e4abed709d7b (patch)
tree379eca80e43e93ac1bdcb4685302e959f51caa54 /indra/newview
parentd365aa10f16c022970cefbfac8651fe01b5a9de8 (diff)
SL-234 WIP - TC build fixes
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llskinningutil.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llskinningutil.cpp b/indra/newview/llskinningutil.cpp
index 23bbbdcf90..bcbeee6958 100644
--- a/indra/newview/llskinningutil.cpp
+++ b/indra/newview/llskinningutil.cpp
@@ -256,22 +256,24 @@ void LLSkinningUtil::remapSkinWeights(LLVector4a* weights, U32 num_vertices, con
// static
void LLSkinningUtil::checkSkinWeights(LLVector4a* weights, U32 num_vertices, const LLMeshSkinInfo* skin)
{
+#ifndef LL_RELEASE_FOR_DOWNLOAD
+ const S32 max_joints = skin->mJointNames.size();
if (skin->mJointRemap.size()>0)
{
// Check the weights are consistent with the current remap.
- const S32 max_joints = skin->mJointNames.size();
for (U32 j=0; j<num_vertices; j++)
{
F32 *w = weights[j].getF32ptr();
-
+
for (U32 k=0; k<4; ++k)
{
S32 i = llfloor(w[k]);
llassert(i>=0);
llassert(i<max_joints);
}
+ }
}
- }
+#endif
}
// static