Skip to content
Snippets Groups Projects
Commit 8970e9c6 authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

SL-234 WIP - TC build fixes

parent d365aa10
No related branches found
No related tags found
No related merge requests found
...@@ -256,22 +256,24 @@ void LLSkinningUtil::remapSkinWeights(LLVector4a* weights, U32 num_vertices, con ...@@ -256,22 +256,24 @@ void LLSkinningUtil::remapSkinWeights(LLVector4a* weights, U32 num_vertices, con
// static // static
void LLSkinningUtil::checkSkinWeights(LLVector4a* weights, U32 num_vertices, const LLMeshSkinInfo* skin) 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) if (skin->mJointRemap.size()>0)
{ {
// Check the weights are consistent with the current remap. // Check the weights are consistent with the current remap.
const S32 max_joints = skin->mJointNames.size();
for (U32 j=0; j<num_vertices; j++) for (U32 j=0; j<num_vertices; j++)
{ {
F32 *w = weights[j].getF32ptr(); F32 *w = weights[j].getF32ptr();
for (U32 k=0; k<4; ++k) for (U32 k=0; k<4; ++k)
{ {
S32 i = llfloor(w[k]); S32 i = llfloor(w[k]);
llassert(i>=0); llassert(i>=0);
llassert(i<max_joints); llassert(i<max_joints);
} }
}
} }
} #endif
} }
// static // static
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment