summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2016-03-08 11:30:31 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2016-03-08 11:30:31 -0500
commitd56533609431b213810928d204e3720fecd42b82 (patch)
tree13b0d0811dac44aaa27e215dd5692bb2f5660371
parent87b1e57079c246fc795e481ba7214e7d507d7a1e (diff)
SL-344.xml - avatar_lad.xml updates. During loading, error out if an attachment_point references an invalid parent.
-rwxr-xr-xindra/newview/character/avatar_lad.xml4
-rwxr-xr-xindra/newview/llvoavatar.cpp17
2 files changed, 9 insertions, 12 deletions
diff --git a/indra/newview/character/avatar_lad.xml b/indra/newview/character/avatar_lad.xml
index a1af48952b..749fb65a01 100755
--- a/indra/newview/character/avatar_lad.xml
+++ b/indra/newview/character/avatar_lad.xml
@@ -490,7 +490,7 @@
group="8"
pie_slice="7"
name="Alt Left Ear"
- joint="mFaceEarLeft"
+ joint="mFaceEar1Left"
position="0.000 0.000 0.000"
rotation="0 0 0"
visible_in_first_person="true"/>
@@ -500,7 +500,7 @@
group="8"
pie_slice="8"
name="Alt Right Ear"
- joint="mFaceEarRight"
+ joint="mFaceEar1Right"
position="0.000 0.000 0.000"
rotation="0 0 0"
visible_in_first_person="true"/>
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 204432dc16..4d6f0f78b2 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -5521,17 +5521,14 @@ BOOL LLVOAvatar::loadSkeletonNode ()
LLJoint *parent_joint = getJoint(info->mJointName);
if (!parent_joint)
{
- // If the intended location for attachment point is unavailable, stick it in a default location.
- LL_INFOS() << "attachment pt " << info->mName << " using mPelvis as default parent" << LL_ENDL;
- parent_joint = getJoint("mPelvis");
- }
- if (!parent_joint)
- {
+ // If the intended parent for attachment point is unavailable, avatar_lad.xml is corrupt.
LL_WARNS() << "No parent joint by name " << info->mJointName << " found for attachment point " << info->mName << LL_ENDL;
- delete attachment;
- continue;
- }
-
+ LL_ERRS() << "Invalid avatar_lad.xml file" << LL_ENDL;
+ // If we wanted to continue from this case, we could do:
+ //delete attachment;
+ //continue;
+ // but there's no point.
+ }
if (info->mHasPosition)
{
attachment->setOriginalPosition(info->mPosition);