diff options
| author | prep linden <prep@lindenlab.com> | 2010-09-24 13:11:53 -0400 |
|---|---|---|
| committer | prep linden <prep@lindenlab.com> | 2010-09-24 13:11:53 -0400 |
| commit | c7f5a9419b4b93efdc04ebfbb8e05a2ef0e09142 (patch) | |
| tree | d4bd4000daf955114e9dc1ed96a873b620115299 /indra/newview/llmeshrepository.cpp | |
| parent | e0588af08737177f8a1bc519376073e14b886434 (diff) | |
Added support for joint offsets
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
| -rwxr-xr-x | indra/newview/llmeshrepository.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 8b14af009c..8381847842 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -1016,6 +1016,23 @@ bool LLMeshRepoThread::skinInfoReceived(const LLUUID& mesh_id, U8* data, S32 dat } } + if (skin.has("alt_inverse_bind_matrix")) + { + for (U32 i = 0; i < skin["alt_inverse_bind_matrix"].size(); ++i) + { + LLMatrix4 mat; + for (U32 j = 0; j < 4; j++) + { + for (U32 k = 0; k < 4; k++) + { + mat.mMatrix[j][k] = skin["alt_inverse_bind_matrix"][i][j*4+k].asReal(); + } + } + + info.mAlternateBindMatrix.push_back(mat); + } + } + mSkinInfoQ.push(info); } |
