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 Seraphmeow-7.2.2
parent
62040b6865
commit
2d5b917cea
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue