diff options
| author | Andrey Lihatskiy <andreylproductengine@lindenlab.com> | 2018-06-22 12:55:19 +0300 | 
|---|---|---|
| committer | Andrey Lihatskiy <andreylproductengine@lindenlab.com> | 2018-06-22 12:55:19 +0300 | 
| commit | 5f432147e373c3223ac06797ecff147d447ed79f (patch) | |
| tree | 942f163ad33ad3997aee3000cae321f5f693ad57 /indra/newview/llvoavatarself.cpp | |
| parent | 99d9befb629c97f7c778c8a9ddfb9d0060d54de9 (diff) | |
| parent | dc07de2f4a4c49d1877bf743b6f0d209392f6eb6 (diff) | |
Merged lindenlab/viewer-release into default
Diffstat (limited to 'indra/newview/llvoavatarself.cpp')
| -rw-r--r-- | indra/newview/llvoavatarself.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index 10af524ee7..b2954f4de2 100644 --- a/indra/newview/llvoavatarself.cpp +++ b/indra/newview/llvoavatarself.cpp @@ -2606,6 +2606,8 @@ void LLVOAvatarSelf::requestLayerSetUpdate(ETextureIndex index )  			if( mUpperBodyLayerSet )  				mUpperBodyLayerSet->requestUpdate(); */  	const LLAvatarAppearanceDictionary::TextureEntry *texture_dict = LLAvatarAppearanceDictionary::getInstance()->getTexture(index); +	if (!texture_dict) +		return;  	if (!texture_dict->mIsLocalTexture || !texture_dict->mIsUsedByBakedTexture)  		return;  	const EBakedTextureIndex baked_index = texture_dict->mBakedTextureIndex; @@ -2622,7 +2624,7 @@ LLViewerTexLayerSet* LLVOAvatarSelf::getLayerSet(ETextureIndex index) const                 case TEX_HEAD_BODYPAINT:                         return mHeadLayerSet; */         const LLAvatarAppearanceDictionary::TextureEntry *texture_dict = LLAvatarAppearanceDictionary::getInstance()->getTexture(index); -       if (texture_dict->mIsUsedByBakedTexture) +       if (texture_dict && texture_dict->mIsUsedByBakedTexture)         {                 const EBakedTextureIndex baked_index = texture_dict->mBakedTextureIndex;                 return getLayerSet(baked_index); @@ -2758,7 +2760,7 @@ void LLVOAvatarSelf::sendHoverHeight() const          // class responder if nothing else gets added.           // (comment from removed Responder)          LLCoreHttpUtil::HttpCoroutineAdapter::messageHttpPost(url, update,  -            "Hover hight sent to sim", "Hover hight not sent to sim"); +            "Hover height sent to sim", "Hover height not sent to sim");  		mLastHoverOffsetSent = hover_offset;  	}  } | 
