Intermediary commit #3
This commit is contained in:
@@ -116,6 +116,32 @@ LLDrawPoolAvatar::LLDrawPoolAvatar() :
|
||||
{
|
||||
}
|
||||
|
||||
LLDrawPoolAvatar::~LLDrawPoolAvatar()
|
||||
{
|
||||
if (!isDead())
|
||||
{
|
||||
LL_WARNS() << "Destroying avatar drawpool that still contains faces" << LL_ENDL;
|
||||
}
|
||||
}
|
||||
|
||||
// virtual
|
||||
BOOL LLDrawPoolAvatar::isDead()
|
||||
{
|
||||
if (!LLFacePool::isDead())
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
for (U32 i = 0; i < NUM_RIGGED_PASSES; ++i)
|
||||
{
|
||||
if (mRiggedFace[i].size() > 0)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// instancePool()
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user