update to latest PhysX version.

fix handling commands that are not implemented yet
This commit is contained in:
erwincoumans
2019-02-20 19:43:23 -08:00
parent 10e559f7aa
commit 6d224996ef
1339 changed files with 3885 additions and 3847 deletions

View File

@@ -1057,7 +1057,7 @@ bool PhysXServerCommandProcessor::processCommand(const struct SharedMemoryComman
int sz = sizeof(SharedMemoryStatus);
int sz2 = sizeof(SharedMemoryCommand);
bool hasStatus = false;
bool hasStatus = true;
serverStatusOut.m_type = CMD_INVALID_STATUS;
serverStatusOut.m_numDataStreamBytes = 0;
@@ -1111,15 +1111,6 @@ bool PhysXServerCommandProcessor::processCommand(const struct SharedMemoryComman
break;
}
default:
{
BT_PROFILE("CMD_UNKNOWN");
printf("Unknown command encountered: %d", clientCmd.m_type);
SharedMemoryStatus& serverCmd = serverStatusOut;
serverCmd.m_type = CMD_UNKNOWN_COMMAND_FLUSHED;
hasStatus = true;
}
case CMD_LOAD_URDF:
{
hasStatus = processLoadURDFCommand(clientCmd, serverStatusOut, bufferServerToClient, bufferSizeInBytes);
@@ -1433,6 +1424,15 @@ bool PhysXServerCommandProcessor::processCommand(const struct SharedMemoryComman
break;
}
#endif
default:
{
BT_PROFILE("CMD_UNKNOWN");
printf("Unknown command encountered: %d", clientCmd.m_type);
SharedMemoryStatus& serverCmd = serverStatusOut;
serverCmd.m_type = CMD_UNKNOWN_COMMAND_FLUSHED;
hasStatus = true;
}
};
return hasStatus;