summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <erwincoumans@erwincoumans-macbookpro2.roam.corp.google.com>2018-06-11 11:41:33 -0700
committerErwin Coumans <erwincoumans@erwincoumans-macbookpro2.roam.corp.google.com>2018-06-11 11:41:33 -0700
commit38469deec78cc4d980e32f5cd0d4df98f2ad5145 (patch)
tree0dd0318dc54d88d346ba740ca4f33f1cdeae3b72
parentfc61a3531e9e92b4c02f041b9dba3ee08e09e03e (diff)
downloadbullet3-38469deec78cc4d980e32f5cd0d4df98f2ad5145.tar.gz
getNumLinks -> getNumDofs, to make sure fixed objects don't transfer activation state
-rw-r--r--examples/Importers/ImportURDFDemo/URDF2Bullet.cpp2
1 files changed, 1 insertions, 1 deletions
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);