PyBullet.setPhysicsEngineParameter: only update solverResidualThreshold if valid values is given
This commit is contained in:
@@ -1466,7 +1466,7 @@ static PyObject* pybullet_setPhysicsEngineParameter(PyObject* self, PyObject* ar
|
||||
b3PhysicsParamSetNumSolverIterations(command, numSolverIterations);
|
||||
}
|
||||
|
||||
if (solverResidualThreshold)
|
||||
if (solverResidualThreshold>=0)
|
||||
{
|
||||
b3PhysicsParamSetSolverResidualThreshold(command, solverResidualThreshold);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user