SL-15185 Crash "The face does not have a valid texture"
parent
e5a428f362
commit
1c2f58fdcd
|
|
@ -3525,11 +3525,22 @@ BOOL LLViewerMediaTexture::findFaces()
|
|||
for(; iter != obj_list->end(); ++iter)
|
||||
{
|
||||
LLVOVolume* obj = *iter;
|
||||
if(obj->mDrawable.isNull())
|
||||
{
|
||||
ret = FALSE;
|
||||
continue;
|
||||
}
|
||||
if (obj->isDead())
|
||||
{
|
||||
// Isn't supposed to happen, objects are supposed to detach
|
||||
// themselves on markDead()
|
||||
// If this happens, viewer is likely to crash
|
||||
llassert(0);
|
||||
LL_WARNS() << "Dead object in mMediaImplp's object list" << LL_ENDL;
|
||||
ret = FALSE;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (obj->mDrawable.isNull() || obj->mDrawable->isDead())
|
||||
{
|
||||
ret = FALSE;
|
||||
continue;
|
||||
}
|
||||
|
||||
S32 face_id = -1;
|
||||
S32 num_faces = obj->mDrawable->getNumFaces();
|
||||
|
|
|
|||
Loading…
Reference in New Issue