Fix issue related to CMD_RESET_SIMULATION

This commit is contained in:
Erwin Coumans
2015-10-24 13:49:25 -07:00
parent f28150c368
commit 818037c011

View File

@@ -1301,8 +1301,9 @@ void PhysicsServerSharedMemory::processClientCommands()
m_data->m_guiHelper->getRenderInterface()->removeAllInstances();
}
deleteDynamicsWorld();
createEmptyDynamicsWorld();
createEmptyDynamicsWorld();
m_data->exitHandles();
m_data->initHandles();
SharedMemoryStatus& serverCmd =m_data->createServerStatus(CMD_RESET_SIMULATION_COMPLETED,clientCmd.m_sequenceNumber,timeStamp);
m_data->submitServerStatus(serverCmd);