Skip to content

Commit

Permalink
secondlife#2230 BugSplat Crash #1502376: SecondLifeViewer!LLPrimitive…
Browse files Browse the repository at this point in the history
…::isAvatar(606)
  • Loading branch information
LLGuru committed Aug 9, 2024
1 parent a6131b5 commit 5a1ce79
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions indra/newview/lldrawable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5a1ce79

Please sign in to comment.