diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-11-22 18:31:20 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-11-22 20:58:50 +0200 |
commit | 97f0a21421940677f02b353036a20bc643f32073 (patch) | |
tree | d988975ca2047f34f7334281f95db664851673fa /indra | |
parent | 934833ba97f3f8e9323fdab4c3e96e392beeeb4e (diff) |
viewer#3131 crash in updateRiggingInfo
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llface.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 297661effd..3ccb363321 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -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 |