#2577 Worn transparent prims no longer show with 'Highlight transparent'
parent
f316a92f30
commit
95725f709d
|
|
@ -11524,21 +11524,24 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
// Called from LLViewHighlightTransparent when "Highlight Transparent" is toggled
|
||||
void LLPipeline::rebuildDrawInfo()
|
||||
{
|
||||
for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin();
|
||||
iter != LLWorld::getInstance()->getRegionList().end(); ++iter)
|
||||
const U32 types_to_traverse[] =
|
||||
{
|
||||
LLViewerRegion* region = *iter;
|
||||
LLViewerRegion::PARTITION_VOLUME,
|
||||
LLViewerRegion::PARTITION_BRIDGE,
|
||||
LLViewerRegion::PARTITION_AVATAR
|
||||
};
|
||||
|
||||
LLOctreeDirty dirty;
|
||||
|
||||
LLSpatialPartition* part = region->getSpatialPartition(LLViewerRegion::PARTITION_VOLUME);
|
||||
dirty.traverse(part->mOctree);
|
||||
|
||||
part = region->getSpatialPartition(LLViewerRegion::PARTITION_BRIDGE);
|
||||
dirty.traverse(part->mOctree);
|
||||
LLOctreeDirty dirty;
|
||||
for (LLViewerRegion* region : LLWorld::getInstance()->getRegionList())
|
||||
{
|
||||
for (U32 type : types_to_traverse)
|
||||
{
|
||||
LLSpatialPartition* part = region->getSpatialPartition(type);
|
||||
dirty.traverse(part->mOctree);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue