Null joint states are getting in the joint map somehow. Added assertions to hunt this down.
This commit is contained in:
@@ -89,6 +89,7 @@ LLJointState *LLPose::getNextJointState()
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL LLPose::addJointState(const LLPointer<LLJointState>& 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)
|
||||
// <edit>
|
||||
// there was a crash here
|
||||
// </edit>
|
||||
llassert_always(iter->second.notNull());
|
||||
if(!iter->second) //uhoh...
|
||||
continue;
|
||||
iter->second->setWeight(weight);
|
||||
}
|
||||
mWeight = weight;
|
||||
|
||||
Reference in New Issue
Block a user