diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2014-12-01 17:13:35 -0500 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2014-12-01 17:13:35 -0500 | 
| commit | 147d1922450f289fe675dc6f0ccce9094db13b38 (patch) | |
| tree | 7a83599d2b5097311c8000e9ace90b08e39c7df8 | |
| parent | fe5ff3e74a69bb7ede65d7d5865325c0a771eca6 (diff) | |
merge fix
| -rwxr-xr-x | indra/newview/llvoavatar.cpp | 68 | 
1 files changed, 34 insertions, 34 deletions
| diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index eb69458f0e..b54f341c31 100755 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -7773,47 +7773,47 @@ void LLVOAvatar::dumpArchetypeXML(const std::string& prefix, bool group_by_weara  			}  		} -	} -	avatar_joint_list_t::iterator iter = mSkeleton.begin(); -	avatar_joint_list_t::iterator end  = mSkeleton.end(); -	for (; iter != end; ++iter) -	{ -		LLJoint* pJoint = (*iter); -		const LLVector3& pos = pJoint->getPosition(); -		const LLVector3& scale = pJoint->getScale(); -		apr_file_printf( file, "\t\t<joint name=\"%s\" position=\"%f %f %f\" scale=\"%f %f %f\"/>\n",  -						 pJoint->getName().c_str(), pos[0], pos[1], pos[2], scale[0], scale[1], scale[2]); -	} +		avatar_joint_list_t::iterator iter = mSkeleton.begin(); +		avatar_joint_list_t::iterator end  = mSkeleton.end(); +		for (; iter != end; ++iter) +		{ +			LLJoint* pJoint = (*iter); +			const LLVector3& pos = pJoint->getPosition(); +			const LLVector3& scale = pJoint->getScale(); +			apr_file_printf( file, "\t\t<joint name=\"%s\" position=\"%f %f %f\" scale=\"%f %f %f\"/>\n",  +							 pJoint->getName().c_str(), pos[0], pos[1], pos[2], scale[0], scale[1], scale[2]); +		} -	for (iter = mSkeleton.begin(); iter != end; ++iter) -	{ -		LLJoint* pJoint = (*iter); +		for (iter = mSkeleton.begin(); iter != end; ++iter) +		{ +			LLJoint* pJoint = (*iter); -		LLVector3 pos; -		LLUUID mesh_id; +			LLVector3 pos; +			LLUUID mesh_id; -		if (pJoint->hasAttachmentPosOverride(pos,mesh_id)) +			if (pJoint->hasAttachmentPosOverride(pos,mesh_id)) +			{ +				apr_file_printf( file, "\t\t<joint_offset name=\"%s\" position=\"%f %f %f\" mesh_id=\"%s\"/>\n",  +								 pJoint->getName().c_str(), pos[0], pos[1], pos[2], mesh_id.asString().c_str()); +			} +		} +		F32 pelvis_fixup; +		LLUUID mesh_id; +		if (hasPelvisFixup(pelvis_fixup, mesh_id))  		{ -			apr_file_printf( file, "\t\t<joint_offset name=\"%s\" position=\"%f %f %f\" mesh_id=\"%s\"/>\n",  -							 pJoint->getName().c_str(), pos[0], pos[1], pos[2], mesh_id.asString().c_str()); +			apr_file_printf( file, "\t\t<pelvis_fixup z=\"%f\" mesh_id=\"%s\"/>\n",  +							 pelvis_fixup, mesh_id.asString().c_str());  		} -	} -	F32 pelvis_fixup; -	LLUUID mesh_id; -	if (hasPelvisFixup(pelvis_fixup, mesh_id)) -	{ -		apr_file_printf( file, "\t\t<pelvis_fixup z=\"%f\" mesh_id=\"%s\"/>\n",  -						 pelvis_fixup, mesh_id.asString().c_str()); -	} -	apr_file_printf( file, "\t</archetype>\n" ); -	apr_file_printf( file, "\n</linden_genepool>\n" ); +		apr_file_printf( file, "\t</archetype>\n" ); +		apr_file_printf( file, "\n</linden_genepool>\n" ); -	bool ultra_verbose = false; -	if (isSelf() && ultra_verbose) -	{ -		// show the cloned params inside the wearables as well. -		gAgentAvatarp->dumpWearableInfo(outfile); +		bool ultra_verbose = false; +		if (isSelf() && ultra_verbose) +		{ +			// show the cloned params inside the wearables as well. +			gAgentAvatarp->dumpWearableInfo(outfile); +		}  	}  	// File will close when handle goes out of scope  } | 
