diff options
Diffstat (limited to 'src/BulletSoftBody/btDeformableBodySolver.cpp')
-rw-r--r-- | src/BulletSoftBody/btDeformableBodySolver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/BulletSoftBody/btDeformableBodySolver.cpp b/src/BulletSoftBody/btDeformableBodySolver.cpp index 4dd45edc8..b77ba9da3 100644 --- a/src/BulletSoftBody/btDeformableBodySolver.cpp +++ b/src/BulletSoftBody/btDeformableBodySolver.cpp @@ -51,7 +51,6 @@ void btDeformableBodySolver::computeStep(TVStack& dv, const TVStack& residual) void btDeformableBodySolver::reinitialize(const btAlignedObjectArray<btSoftBody *>& softBodies, btScalar dt) { - m_objective->setDt(dt); m_softBodySet.copyFromArray(softBodies); bool nodeUpdated = updateNodes(); @@ -69,7 +68,7 @@ void btDeformableBodySolver::reinitialize(const btAlignedObjectArray<btSoftBody m_residual[i].setZero(); } - m_objective->reinitialize(nodeUpdated); + m_objective->reinitialize(nodeUpdated, dt); } void btDeformableBodySolver::setConstraints() |