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

This commit is contained in:
Erwin Coumans committed 2018-06-20 13:18:08 -07:00
1 parent 42c9d9aa3c
commit fcde193d52
1 file changed
+1 -1
+1 -1
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);
}