From a399452d20eebca112e9ec926e8d69a114a3d3eb Mon Sep 17 00:00:00 2001 From: Shyotl Date: Wed, 20 Jul 2011 23:52:23 -0500 Subject: [PATCH] Null joint states are getting in the joint map somehow. Added assertions to hunt this down. --- indra/llcharacter/llpose.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indra/llcharacter/llpose.cpp b/indra/llcharacter/llpose.cpp index 8c7cba0a1..b770b05a7 100644 --- a/indra/llcharacter/llpose.cpp +++ b/indra/llcharacter/llpose.cpp @@ -89,6 +89,7 @@ LLJointState *LLPose::getNextJointState() //----------------------------------------------------------------------------- BOOL LLPose::addJointState(const LLPointer& jointState) { + llassert_always(jointState.notNull()); if (mJointMap.find(jointState->getJoint()->getName()) == mJointMap.end()) { mJointMap[jointState->getJoint()->getName()] = jointState; @@ -161,6 +162,9 @@ void LLPose::setWeight(F32 weight) // // there was a crash here // + llassert_always(iter->second.notNull()); + if(!iter->second) //uhoh... + continue; iter->second->setWeight(weight); } mWeight = weight;