Sligtly optimize this...

master
Ansariel 2020-10-24 16:40:02 +02:00
parent 0167018542
commit 594b174a3c
1 changed files with 2 additions and 3 deletions

View File

@ -147,10 +147,9 @@ bool RegionCrossExtrapolate::ifsaton(const LLViewerObject& vo) // true if root
return false; // not root, cannot be sat upon
}
for (auto iter = vo.getChildren().begin(); // check for avatar as child of root
iter != vo.getChildren().end(); iter++)
LLViewerObject::const_child_list_t& children = vo.getChildren();
for (const auto child : children)
{
LLViewerObject* child = *iter;
if (child->isAvatar())
{
return true;