Skip to content
Snippets Groups Projects
Commit da663570 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-16907 Crash at updateSkinInfoMatrixPalette

When animesh stops being an animesh it might still be in a list, but will no longer have an avatar
parent 68355743
No related branches found
No related tags found
No related merge requests found
......@@ -451,7 +451,7 @@ void LLRenderPass::pushRiggedBatches(U32 type, U32 mask, BOOL texture, BOOL batc
LLDrawInfo* pparams = *i;
if (pparams)
{
if (lastAvatar != pparams->mAvatar || lastMeshId != pparams->mSkinInfo->mHash)
if (pparams->mAvatar.notNull() && (lastAvatar != pparams->mAvatar || lastMeshId != pparams->mSkinInfo->mHash))
{
uploadMatrixPalette(*pparams);
lastAvatar = pparams->mAvatar;
......
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