Skip to content

Commit 49c3eed

Browse files
committed
#2577 Worn transparent prims no longer show with 'Highlight transparent'
1 parent 4cc997b commit 49c3eed

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

indra/newview/pipeline.cpp

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11248,21 +11248,24 @@ class LLOctreeDirty : public OctreeTraveler
1124811248
}
1124911249
};
1125011250

11251-
11251+
// Called from LLViewHighlightTransparent when "Highlight Transparent" is toggled
1125211252
void LLPipeline::rebuildDrawInfo()
1125311253
{
11254-
for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin();
11255-
iter != LLWorld::getInstance()->getRegionList().end(); ++iter)
11254+
const U32 types_to_traverse[] =
1125611255
{
11257-
LLViewerRegion* region = *iter;
11258-
11259-
LLOctreeDirty dirty;
11260-
11261-
LLSpatialPartition* part = region->getSpatialPartition(LLViewerRegion::PARTITION_VOLUME);
11262-
dirty.traverse(part->mOctree);
11256+
LLViewerRegion::PARTITION_VOLUME,
11257+
LLViewerRegion::PARTITION_BRIDGE,
11258+
LLViewerRegion::PARTITION_AVATAR
11259+
};
1126311260

11264-
part = region->getSpatialPartition(LLViewerRegion::PARTITION_BRIDGE);
11265-
dirty.traverse(part->mOctree);
11261+
LLOctreeDirty dirty;
11262+
for (LLViewerRegion* region : LLWorld::getInstance()->getRegionList())
11263+
{
11264+
for (U32 type : types_to_traverse)
11265+
{
11266+
LLSpatialPartition* part = region->getSpatialPartition(type);
11267+
dirty.traverse(part->mOctree);
11268+
}
1126611269
}
1126711270
}
1126811271

0 commit comments

Comments
 (0)