summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2018-07-11 22:04:15 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2018-07-11 22:04:15 +0100
commita45868cd03de711e80bdb576992947e466ecf884 (patch)
treea3af90c31f39367c6619a260b903b9ad69568188
parent0c7c3ef673c9c83aea88c9a8b865b42148f3f008 (diff)
MAINT-8863 - more logging of possible llskinningutil errors
-rw-r--r--indra/newview/llskinningutil.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llskinningutil.cpp b/indra/newview/llskinningutil.cpp
index 2f3b542fa8..64794ae720 100644
--- a/indra/newview/llskinningutil.cpp
+++ b/indra/newview/llskinningutil.cpp
@@ -63,6 +63,7 @@ void LLSkinningUtil::scrubInvalidJoints(LLVOAvatar *avatar, LLMeshSkinInfo* skin
if (!avatar->getJoint(skin->mJointNames[j]))
{
LL_DEBUGS("Avatar") << "Mesh rigged to invalid joint" << skin->mJointNames[j] << LL_ENDL;
+ LL_WARNS_ONCE("Avatar") << "Mesh rigged to invalid joint" << skin->mJointNames[j] << LL_ENDL;
skin->mJointNames[j] = "mPelvis";
}
}
@@ -213,6 +214,14 @@ void LLSkinningUtil::initJointNums(LLMeshSkinInfo* skin, LLVOAvatar *avatar)
if (joint)
{
skin->mJointNums[j] = joint->getJointNum();
+ if (skin->mJointNums[j] < 0)
+ {
+ LL_WARNS_ONCE() << "joint has unusual number " << skin->mJointNames[j] << ": " << skin->mJointNums[j] << LL_ENDL;
+ }
+ }
+ else
+ {
+ LL_WARNS_ONCE() << "unable to find joint " << skin->mJointNames[j] << LL_ENDL;
}
}
}