diff options
author | nat_linden <nat@lindenlab.com> | 2015-04-15 10:50:46 -0400 |
---|---|---|
committer | nat_linden <nat@lindenlab.com> | 2015-04-15 10:50:46 -0400 |
commit | 75396e1f131137d7f0dfb3f5fdbddeea1ce12fba (patch) | |
tree | 33ca8281a889107816663e2bacfc44cfeeb9e815 /indra/newview/lldrawable.cpp | |
parent | e59dbf1b23a13c6a7f1f0d9661d3dcb78ea040f2 (diff) | |
parent | e611e35e033e99f619b0e4938f6879c8e387efd5 (diff) |
Merged lindenlab/viewer-tools-update into default
Diffstat (limited to 'indra/newview/lldrawable.cpp')
-rwxr-xr-x | indra/newview/lldrawable.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/lldrawable.cpp b/indra/newview/lldrawable.cpp index 3293b02131..f956023358 100755 --- a/indra/newview/lldrawable.cpp +++ b/indra/newview/lldrawable.cpp @@ -1116,7 +1116,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()) |