MAINT-2590 FIXED Linked HUDs attached directly from inworld are invisible

andreykproductengine 2014-12-16 19:09:38 +02:00
parent 028e9b998c
commit 5f288e837c
1 changed files with 8 additions and 1 deletions

View File

@ -1117,7 +1117,14 @@ LLSpatialPartition* LLDrawable::getSpatialPartition()
retval = gPipeline.getSpatialPartition((LLViewerObject*) mVObjp);
}
else if (isRoot())
{ //must be an active volume
{
if (mSpatialBridge && (mSpatialBridge->asPartition()->mPartitionType == LLViewerRegion::PARTITION_HUD) != mVObjp->isHUDAttachment())
{
// remove obsolete bridge
mSpatialBridge->markDead();
setSpatialBridge(NULL);
}
//must be an active volume
if (!mSpatialBridge)
{
if (mVObjp->isHUDAttachment())