#4608 Crash at LLJoint::findJoint

'this' is null inside findJoint according to bugsplat so likely mRoot
was not initialized yet.
master
Andrey Kleshchev 2025-08-27 01:42:36 +03:00 committed by Andrey Kleshchev
parent 8a585912ad
commit 0fc42e951f
1 changed files with 1 additions and 1 deletions

View File

@ -2460,7 +2460,7 @@ bool LLMeshRepoThread::skinInfoReceived(const LLUUID& mesh_id, U8* data, S32 dat
LLPointer<LLMeshSkinInfo> info = nullptr;
info = new LLMeshSkinInfo(mesh_id, skin);
if (isAgentAvatarValid())
if (isAgentAvatarValid() && gAgentAvatarp->mInitFlags != 0)
{ // joint numbers are consistent inside LLVOAvatar and animations, but inconsistent inside meshes,
// generate a map of mesh joint numbers to LLVOAvatar joint numbers
LLSkinningUtil::initJointNums(info, gAgentAvatarp);