SL-12896 BOM texture settings - replaced isRiggedMesh() call with faster check
parent
d9cdef171a
commit
8b8a57a977
|
|
@ -4800,7 +4800,9 @@ LLViewerTexture* LLViewerObject::getBakedTextureForMagicId(const LLUUID& id)
|
|||
}
|
||||
|
||||
LLVOAvatar* avatar = getAvatar();
|
||||
if (avatar && isRiggedMesh() && !isHUDAttachment())
|
||||
if (avatar && !isHUDAttachment()
|
||||
&& isMesh()
|
||||
&& getVolume() && getVolume()->getParams().getSculptID().notNull()) // checking for the rigged mesh by params instead of using isRiggedMesh() to avoid false negatives when skin info isn't ready
|
||||
{
|
||||
LLAvatarAppearanceDefines::EBakedTextureIndex texIndex = LLAvatarAppearanceDefines::LLAvatarAppearanceDictionary::assetIdToBakedTextureIndex(id);
|
||||
LLViewerTexture* bakedTexture = avatar->getBakedTexture(texIndex);
|
||||
|
|
|
|||
Loading…
Reference in New Issue