fix VR controllers only visible in one eye (remove stray glClear for testing planar reflection)

PyBullet: force both contactStiffness and contactDamping (report error otherwise)
This commit is contained in:
erwincoumans
2018-05-16 14:24:12 -07:00
parent b432daed65
commit 034dfba3ae
3 changed files with 10 additions and 4 deletions

View File

@@ -937,6 +937,12 @@ static PyObject* pybullet_changeDynamicsInfo(PyObject* self, PyObject* args, PyO
return NULL;
}
if ((contactStiffness>=0 && contactDamping <0)||(contactStiffness<0 && contactDamping >=0))
{
PyErr_SetString(SpamError, "Both contactStiffness and contactDamping needs to be set together.");
return NULL;
}
{
b3SharedMemoryCommandHandle command = b3InitChangeDynamicsInfo(sm);
b3SharedMemoryStatusHandle statusHandle;