#2230 BugSplat Crash #1502376: SecondLifeViewer!LLPrimitive::isAvatar(606)

master
Alexander Gavriliuk 2024-08-09 16:32:11 +02:00 committed by Guru
parent a6131b5652
commit 5a1ce7974b
1 changed files with 2 additions and 10 deletions

View File

@ -1600,18 +1600,10 @@ void LLSpatialBridge::updateDistance(LLCamera& camera_in, bool force_update)
mDrawable->updateDistance(camera, force_update);
LLViewerObject::const_child_list_t& child_list = mDrawable->getVObj()->getChildren();
for (LLViewerObject::child_list_t::const_iterator iter = child_list.begin();
iter != child_list.end(); iter++)
for (LLViewerObject* child : mDrawable->getVObj()->getChildren())
{
LLViewerObject* child = *iter;
LLDrawable* drawable = child->mDrawable;
if (!drawable)
{
continue;
}
if (!drawable->isAvatar())
if (drawable && !drawable->isDead() && drawable->isAvatar())
{
drawable->updateDistance(camera, force_update);
}