PyBullet.setPhysicsEngineParameter: only update solverResidualThreshold if valid values is given

This commit is contained in:
Erwin Coumans
2018-06-20 13:18:08 -07:00
parent 42c9d9aa3c
commit fcde193d52

View File

@@ -1466,7 +1466,7 @@ static PyObject* pybullet_setPhysicsEngineParameter(PyObject* self, PyObject* ar
b3PhysicsParamSetNumSolverIterations(command, numSolverIterations);
}
if (solverResidualThreshold)
if (solverResidualThreshold>=0)
{
b3PhysicsParamSetSolverResidualThreshold(command, solverResidualThreshold);
}