diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2014-08-27 16:52:52 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2014-08-27 16:52:52 -0400 |
commit | 33f66ac2344f996a2310b179173232b98c8bd026 (patch) | |
tree | e545f54fc5a4e5ed0314ddafbe5536c69cfaa3e9 /indra/newview/llviewerobject.cpp | |
parent | 79bb641310775c56cb742c5ea938d5681117585c (diff) |
WIP on attachment offset management in joints
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rwxr-xr-x | indra/newview/llviewerobject.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 4f992fc184..97cefaf33c 100755 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -6193,6 +6193,17 @@ const LLUUID &LLViewerObject::extractAttachmentItemID() return getAttachmentItemID(); } +const std::string& LLViewerObject::getAttachmentItemName() +{ + static std::string empty; + LLInventoryItem *item = gInventory.getItem(getAttachmentItemID()); + if (isAttachment() && item) + { + return item->getName(); + } + return empty; +} + //virtual LLVOAvatar* LLViewerObject::getAvatar() const { |