EXT-8119 tattoo texture remains grey until rebake

texture pipeline always returns a valid image, we needed to check the image id
against IMG_DEFAULT instead of NULL. This causes the image to be correctly set
to IMG_DEFAULT_AVATAR, which is never rendered during layer baking.

Code reviewed by Seraph
meow-7.2.2
Nyx (Neal Orman) 2010-07-20 15:56:37 -04:00
parent 62040b6865
commit 2d5b917cea
1 changed files with 1 additions and 1 deletions

View File

@ -896,7 +896,7 @@ void LLPanelEditWearable::onTexturePickerCommit(const LLUICtrl* ctrl)
{
// Set the new version
LLViewerFetchedTexture* image = LLViewerTextureManager::getFetchedTexture(texture_ctrl->getImageAssetID());
if( image->getID().isNull() )
if( image->getID() == IMG_DEFAULT )
{
image = LLViewerTextureManager::getFetchedTexture(IMG_DEFAULT_AVATAR);
}