File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -11248,21 +11248,24 @@ class LLOctreeDirty : public OctreeTraveler
1124811248 }
1124911249};
1125011250
11251-
11251+ // Called from LLViewHighlightTransparent when "Highlight Transparent" is toggled
1125211252void 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
You can’t perform that action at this time.
0 commit comments