enable more unit tests in PyBullet.

return Py_None if no user data found, to pass the test.
enable m_deterministicOverlappingPairs by default.
if m_deterministicOverlappingPairs, sort the collision pairs.
This commit is contained in:
erwincoumans
2018-06-09 12:19:29 -07:00
parent 046a86cd84
commit 0cec85626f
5 changed files with 158 additions and 4 deletions

View File

@@ -820,8 +820,8 @@ static PyObject* pybullet_getUserData(PyObject* self, PyObject* args, PyObject*
if (!b3GetUserData(sm, bodyUniqueId, linkIndex, userDataId, &value)) {
PyErr_SetString(SpamError, "Cannot get user data");
return NULL;
Py_INCREF(Py_None);
return Py_None;
}
if (value.m_type != USER_DATA_VALUE_TYPE_STRING)
{