SL-20189 Crash at LLViewerMediaTexture::addFace

master
Andrey Kleshchev 2023-08-23 02:20:12 +03:00
parent 226a0025e9
commit 720504595a
1 changed files with 4 additions and 1 deletions

View File

@ -3742,7 +3742,10 @@ void LLViewerMediaTexture::addFace(U32 ch, LLFace* facep)
if(te && te->getID().notNull()) //should have a texture
{
LL_ERRS() << "The face does not have a valid texture before media texture." << LL_ENDL;
LL_WARNS_ONCE() << "The face's texture " << te->getID() << " is not valid. Face must have a valid texture before media texture." << LL_ENDL;
// This might break the object, but it likely isn't a 'recoverable' situation.
LLViewerFetchedTexture* tex = LLViewerTextureManager::getFetchedTexture(te->getID());
mTextureList.push_back(tex);
}
}