Fix crash in LLDrawable::getSpatialBridge

Fixes https://code.google.com/p/singularity-viewer/issues/detail?id=972
This commit is contained in:
Aleric Inglewood
2013-07-29 00:05:23 +02:00
parent 1475832617
commit 694085ab78

View File

@@ -2526,7 +2526,7 @@ void LLVOAvatar::idleUpdateMisc(bool detailed_update)
{{
LLViewerJointAttachment* attachment = attachment_iter->second;
LLViewerObject* attached_object = attachment_iter->first;
BOOL visibleAttachment = visible || (attached_object &&
BOOL visibleAttachment = visible || (attached_object && attached_object->mDrawable.notNull() &&
!(attached_object->mDrawable->getSpatialBridge() &&
attached_object->mDrawable->getSpatialBridge()->getRadius() < 2.0));