diff options
| author | simon <none@none> | 2013-10-17 14:58:27 -0700 |
|---|---|---|
| committer | simon <none@none> | 2013-10-17 14:58:27 -0700 |
| commit | 8eb56668feb91032136ccfabee44c3ceb1d586b3 (patch) | |
| tree | 6f9af5a2b90156cba0976f3e93648daf81855875 /indra/newview/llvoavatar.cpp | |
| parent | 4621aedc37bd8ad4042fe29283a2309d94264938 (diff) | |
SUN-69 MAINT-2258 : temp attachments getting removed improperly. Reviewed by Kelly.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
| -rwxr-xr-x | indra/newview/llvoavatar.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index f92fa0371e..f5918a0a5f 100755 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -5975,6 +5975,28 @@ BOOL LLVOAvatar::isWearingWearableType(LLWearableType::EType type) const +LLViewerObject * LLVOAvatar::findAttachmentByID( const LLUUID & target_id ) const +{ + for(attachment_map_t::const_iterator attachment_points_iter = mAttachmentPoints.begin(); + attachment_points_iter != gAgentAvatarp->mAttachmentPoints.end(); + ++attachment_points_iter) + { + LLViewerJointAttachment* attachment = attachment_points_iter->second; + for (LLViewerJointAttachment::attachedobjs_vec_t::iterator attachment_iter = attachment->mAttachedObjects.begin(); + attachment_iter != attachment->mAttachedObjects.end(); + ++attachment_iter) + { + LLViewerObject *attached_object = (*attachment_iter); + if (attached_object && + attached_object->getID() == target_id) + { + return attached_object; + } + } + } + + return NULL; +} // virtual |
