summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven <shengjun89@163.com>2019-04-09 20:13:54 +0800
committerSteven <shengjun89@163.com>2019-04-09 20:13:54 +0800
commitbdf055307759cca0522951d64419e59af2dd9dc1 (patch)
tree315ccd53bd2f8b4ed640f2a34f076eacd25b90b8
parent43e164af8a378359aaf7c49670885f95c10c140d (diff)
downloadbullet3-bdf055307759cca0522951d64419e59af2dd9dc1.tar.gz
don't need to call the computeAccelerationsArticulatedBodyAlgorithmMultiDof() the second pass if the m_internalNeedsJointFeedback is false.
-rw-r--r--src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp b/src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp
index 1557987bc..faaa211f6 100644
--- a/src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp
+++ b/src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp
@@ -717,6 +717,7 @@ void btMultiBodyDynamicsWorld::solveConstraints(btContactSolverInfo& solverInfo)
m_scratch_v.resize(bod->getNumLinks() + 1);
m_scratch_m.resize(bod->getNumLinks() + 1);
+ if (bod->internalNeedsJointFeedback())
{
if (!bod->isUsingRK4Integration())
{