diff options
author | Aura Linden <aura@lindenlab.com> | 2015-11-13 04:12:13 -0800 |
---|---|---|
committer | Aura Linden <aura@lindenlab.com> | 2015-11-13 04:12:13 -0800 |
commit | 99219cbe80d56dbd9d6f75689304ce2759592868 (patch) | |
tree | edddfd8003e918e5f922c500560b4ffcc2dd0689 /indra/newview/llvoavatar.cpp | |
parent | 146919fa764bed09bfa5e27bc30d02ce2afb6188 (diff) | |
parent | b72480ddb9b01202f1bbe4bfb84595549faeacf3 (diff) |
Eliminated joint_offset file. Added aliases attrib to bones in avatar_skeleton.xml.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rwxr-xr-x | indra/newview/llvoavatar.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index d14ec7e55b..b6924e5904 100755 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -940,15 +940,13 @@ std::string LLVOAvatar::rezStatusToString(S32 rez_status) void LLVOAvatar::getLegalJointNames(std::deque<std::string>& legal_joint_names, bool include_collision_volumes) { - // Get all standard skeleton joints from the preview avatar. - const LLVOAvatar::avatar_joint_list_t &skel = getSkeleton(); - for (S32 i=0; i<skel.size(); i++) + LLAvatarAppearance::joint_alias_map_t alias_map = getJointAliases(); + + std::map<std::string, std::string>::iterator iter; + + for (iter = alias_map.begin(); iter != alias_map.end(); ++iter) { - LLAvatarJoint *joint = skel[i]; - if (joint) - { - legal_joint_names.push_back(joint->getName()); - } + legal_joint_names.push_back(iter->first); } if (include_collision_volumes) |