diff options
author | Erwin Coumans <erwincoumans@erwincoumans-macbookpro2.roam.corp.google.com> | 2018-06-11 11:41:33 -0700 |
---|---|---|
committer | Erwin Coumans <erwincoumans@erwincoumans-macbookpro2.roam.corp.google.com> | 2018-06-11 11:41:33 -0700 |
commit | 38469deec78cc4d980e32f5cd0d4df98f2ad5145 (patch) | |
tree | 0dd0318dc54d88d346ba740ca4f33f1cdeae3b72 | |
parent | fc61a3531e9e92b4c02f041b9dba3ee08e09e03e (diff) | |
download | bullet3-38469deec78cc4d980e32f5cd0d4df98f2ad5145.tar.gz |
getNumLinks -> getNumDofs, to make sure fixed objects don't transfer activation state
-rw-r--r-- | examples/Importers/ImportURDFDemo/URDF2Bullet.cpp | 2 |
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); |