revert API to be backward compatible, add b3CreateInProcessPhysicsServerAndConnectSharedMemory

same for BulletURDFImporter constructor
This commit is contained in:
Erwin Coumans committed 2017-08-16 12:33:25 -07:00
1 parent b7579cbdda
commit a66576f034
5 files changed
+35 -15

No files matched your search

@@ -129,9 +129,9 @@ bool b3RobotSimulatorClientAPI::connect(int mode, const std::string& hostName, i
int argc = 0;
char* argv[1] = {0};
#ifdef __APPLE__
sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv,1);
sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv);
#else
sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv,1);
sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv);
#endif
break;
}
@@ -140,9 +140,9 @@ bool b3RobotSimulatorClientAPI::connect(int mode, const std::string& hostName, i
int argc = 0;
char* argv[1] = {0};
#ifdef __APPLE__
sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv,0);
sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv);
#else
sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv,0);
sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv);
#endif
break;
}