summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-09-10 18:46:52 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-09-10 18:46:52 -0400
commitfc84d684500c2216aa270bffef865ee265927535 (patch)
treea66b89365b071281aceea333a3d9040cdf9ed2ba /indra/newview/llvoavatar.cpp
parentb6b72e5b4edecfd467dd0679a24cdf854fc9bc00 (diff)
dumpArchetypeXML tweaks, appearance debugging
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rwxr-xr-xindra/newview/llvoavatar.cpp41
1 files changed, 20 insertions, 21 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index e03c0c3dad..61816c1771 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -7337,6 +7337,7 @@ bool LLVOAvatar::visualParamWeightsAreDefault()
//-----------------------------------------------------------------------------
void LLVOAvatar::processAvatarAppearance( LLMessageSystem* mesgsys )
{
+ dumpArchetypeXML("process_start");
if (gSavedSettings.getBOOL("BlockAvatarAppearanceMessages"))
{
llwarns << "Blocking AvatarAppearance message" << llendl;
@@ -7773,32 +7774,30 @@ void LLVOAvatar::useBakedTexture( const LLUUID& id )
dirtyMesh();
}
-void LLVOAvatar::dumpArchetypeXML(const std::string& filename )
+void LLVOAvatar::dumpArchetypeXML(const std::string& prefix )
{
- std::string outfilename(filename);
- if (outfilename.empty())
+ std::string outprefix(prefix);
+ if (outprefix.empty())
{
- std::string fullname = getFullname();
- if (!fullname.empty())
- {
- typedef std::map<std::string,S32> file_num_type;
- static file_num_type file_nums;
- file_num_type::iterator it = file_nums.find(fullname);
- S32 num = 0;
- if (it != file_nums.end())
- {
- num = it->second;
- }
- std::ostringstream temp;
- temp << std::setw(4) << std::setfill('0') << num;
- file_nums[fullname] = num+1;
- outfilename = fullname + " " + temp.str() + ".xml";
- }
+ outprefix = getFullname();
+ }
+ if (outprefix.empty())
+ {
+ outprefix = std::string("new_archetype");
}
- if (outfilename.empty())
+ typedef std::map<std::string,S32> file_num_type;
+ static file_num_type file_nums;
+ file_num_type::iterator it = file_nums.find(outprefix);
+ S32 num = 0;
+ if (it != file_nums.end())
{
- outfilename = std::string("new archetype.xml");
+ num = it->second;
}
+ std::ostringstream temp;
+ temp << std::setw(4) << std::setfill('0') << num;
+ file_nums[outprefix] = num+1;
+ std::string outfilename = outprefix + " " + temp.str() + ".xml";
+ std::replace(outfilename.begin(),outfilename.end(),' ','_');
LLAPRFile outfile;
outfile.open(gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS,outfilename), LL_APR_WB );