getNumLinks -> getNumDofs, to make sure fixed objects don't transfer activation state

This commit is contained in:
Erwin Coumans 2018-06-11 11:41:33 -07:00
parent fc61a3531e
commit 38469deec7

View File

@ -595,7 +595,7 @@ void ConvertURDF2BulletInternal(
}
} else
{
if (cache.m_bulletMultiBody->getBaseMass()==0 && cache.m_bulletMultiBody->getNumLinks()==0)
if (cache.m_bulletMultiBody->getBaseMass()==0 && cache.m_bulletMultiBody->getNumDofs()==0)
{
//col->setCollisionFlags(btCollisionObject::CF_KINEMATIC_OBJECT);
col->setCollisionFlags(btCollisionObject::CF_STATIC_OBJECT);