PyBullet: allow to choose the shared memory key when starting SHARED_MEMORY_SERVER

This commit is contained in:
Erwin Coumans
2018-06-05 11:36:54 +10:00
parent 4997eb8da2
commit e4cd88e24f
3 changed files with 8 additions and 4 deletions

View File

@@ -399,7 +399,7 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P
}
case eCONNECT_SHARED_MEMORY_SERVER:
{
sm = b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect2(0);
sm = b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect2(0, key);
break;
}
case eCONNECT_DIRECT: