PyBullet.setPhysicsEngineParameter: only update solverResidualThreshold if valid values is given
This commit is contained in:
1 parent
42c9d9aa3c
commit
fcde193d52
1 file changed
+1
-1
@@ -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