Toss attachments into their own bridge that sets their type to TYPE_AVATAR, and use generic bridge for plain old 'active' volumes. Resolves issue where non-attached ACTIVE flagged linksets would be included in the avatar render type, and thus would vanish when such type was disabled.
This commit is contained in:
@@ -1056,6 +1056,10 @@ LLSpatialPartition* LLDrawable::getSpatialPartition()
|
||||
{
|
||||
setSpatialBridge(new LLHUDBridge(this));
|
||||
}
|
||||
else if (mVObjp->isAttachment())
|
||||
{
|
||||
setSpatialBridge(new LLAttachmentBridge(this));
|
||||
}
|
||||
else
|
||||
{
|
||||
setSpatialBridge(new LLVolumeBridge(this));
|
||||
@@ -1663,12 +1667,18 @@ void LLDrawable::updateFaceSize(S32 idx)
|
||||
LLBridgePartition::LLBridgePartition()
|
||||
: LLSpatialPartition(0, FALSE, 0)
|
||||
{
|
||||
mDrawableType = LLPipeline::RENDER_TYPE_AVATAR;
|
||||
mDrawableType = LLPipeline::RENDER_TYPE_VOLUME;
|
||||
mPartitionType = LLViewerRegion::PARTITION_BRIDGE;
|
||||
mLODPeriod = 16;
|
||||
mSlopRatio = 0.25f;
|
||||
}
|
||||
|
||||
LLAttachmentPartition::LLAttachmentPartition()
|
||||
: LLBridgePartition()
|
||||
{
|
||||
mDrawableType = LLPipeline::RENDER_TYPE_AVATAR;
|
||||
}
|
||||
|
||||
LLHUDBridge::LLHUDBridge(LLDrawable* drawablep)
|
||||
: LLVolumeBridge(drawablep)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user