From 38469deec78cc4d980e32f5cd0d4df98f2ad5145 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Mon, 11 Jun 2018 11:41:33 -0700 Subject: [PATCH] getNumLinks -> getNumDofs, to make sure fixed objects don't transfer activation state --- examples/Importers/ImportURDFDemo/URDF2Bullet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp b/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp index 6eee15418..171619666 100644 --- a/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp +++ b/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp @@ -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);