make OSX/Unix version of PosixSharedMemory work

pass on useFixedBase to URDF loader in PhysicsServer
This commit is contained in:
=
2015-07-14 16:23:01 -07:00
parent 54a76f6e0c
commit 48f6484b3d
3 changed files with 3 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ bool PhysicsServerSharedMemory::loadUrdf(const char* fileName, const btVector3&
BulletURDFImporter u2b(m_data->m_guiHelper);
bool loadOk = u2b.loadURDF(fileName);
bool loadOk = u2b.loadURDF(fileName, useFixedBase);
if (loadOk)
{
b3Printf("loaded %s OK!", fileName);

View File

@@ -40,7 +40,7 @@ struct btPointerCaster
};
};
void* PosixSharedMemory::allocateSharedMemory(int key, int size)
void* PosixSharedMemory::allocateSharedMemory(int key, int size, bool /*allowCreation*/)
{
#ifdef TEST_SHARED_MEMORY
int flags = IPC_CREAT | 0666;

View File

@@ -14,7 +14,7 @@ public:
PosixSharedMemory();
virtual ~PosixSharedMemory();
virtual void* allocateSharedMemory(int key, int size);
virtual void* allocateSharedMemory(int key, int size, bool allowCreation);
virtual void releaseSharedMemory(int key, int size);
};