From fcde193d5251b8f9408c668031131c534c325b22 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Wed, 20 Jun 2018 13:18:08 -0700 Subject: [PATCH] PyBullet.setPhysicsEngineParameter: only update solverResidualThreshold if valid values is given --- examples/pybullet/pybullet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 71813938f..fb6078865 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -1466,7 +1466,7 @@ static PyObject* pybullet_setPhysicsEngineParameter(PyObject* self, PyObject* ar b3PhysicsParamSetNumSolverIterations(command, numSolverIterations); } - if (solverResidualThreshold) + if (solverResidualThreshold>=0) { b3PhysicsParamSetSolverResidualThreshold(command, solverResidualThreshold); }