summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-09-07 17:48:09 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-09-07 17:48:09 -0400
commit2b2fd9e97526d10b0b4d34154cc0a46f957acba7 (patch)
tree5ce98eddbd4cb7f26ebb6646bfb961f9537cbff4 /indra/newview/llviewermenu.cpp
parent259857b34ee0f9cbb8af6fb66f8ac280baac7b52 (diff)
enhanced XML archetype dumping, added to per-avatar menus
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rwxr-xr-xindra/newview/llviewermenu.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 3c0136c258..9c748c7f86 100755
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -1600,7 +1600,14 @@ class LLAdvancedAppearanceToXML : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
{
- LLVOAvatar::dumpArchetypeXML(NULL);
+ std::string emptyname;
+ LLVOAvatar* avatar =
+ find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() );
+ if (!avatar)
+ {
+ avatar = gAgentAvatarp;
+ }
+ avatar->dumpArchetypeXML(emptyname);
return true;
}
};