From 694085ab783078b78691c6b357afd866194a4f54 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Mon, 29 Jul 2013 00:05:23 +0200 Subject: [PATCH] Fix crash in LLDrawable::getSpatialBridge Fixes https://code.google.com/p/singularity-viewer/issues/detail?id=972 --- indra/newview/llvoavatar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index eaabf2e80..d922dfbf1 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -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));