From 74475479cfa0fe5d72faaf5c8b2ebc2793695c43 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Wed, 13 Sep 2017 17:05:23 -0700 Subject: [PATCH] fix pybullet, checked wrong type after connection --- examples/pybullet/pybullet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 4cad53bd7..c1f7e2eb2 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -440,7 +440,8 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P command = b3InitSyncBodyInfoCommand(sm); statusHandle = b3SubmitClientCommandAndWaitStatus(sm, command); statusType = b3GetStatusType(statusHandle); - if (statusType != CMD_BODY_INFO_COMPLETED) + + if (statusType != CMD_SYNC_BODY_INFO_COMPLETED) { printf("Connection terminated, couldn't get body info\n"); b3DisconnectSharedMemory(sm);