viewer#3131 crash in updateRiggingInfo

meow-7.2.2
Andrey Kleshchev 2024-11-22 18:31:20 +02:00 committed by Andrey Kleshchev
parent 934833ba97
commit 97f0a21421
1 changed files with 4 additions and 2 deletions

View File

@ -2218,9 +2218,11 @@ bool LLFace::calcPixelArea(F32& cos_angle_to_view_dir, F32& radius)
if (rigInfo.needsUpdate())
{
LLVOVolume* vo_volume = (LLVOVolume*)mVObjp.get();
LLVOAvatar* avatar = mVObjp->getAvatar();
const LLMeshSkinInfo* skin = vo_volume->getSkinInfo();
LLSkinningUtil::updateRiggingInfo(skin, avatar, face);
if (skin)
{
LLSkinningUtil::updateRiggingInfo(skin, avatar, face);
}
}
// calculate the world space bounding box of the face by combining the bounding boxes of all the joints