sync graphics server at resetSimulation, load* and resetJointState

This commit is contained in:
Erwin Coumans
2019-08-06 10:56:21 -07:00
parent bf90b6a1d5
commit 098cde55fd

View File

@@ -3234,6 +3234,7 @@ bool PhysicsServerCommandProcessor::processImportedObjects(const char* fileName,
m_data->m_saveWorldBodyData.push_back(sd); m_data->m_saveWorldBodyData.push_back(sd);
syncPhysicsToGraphics2();
return loadOk; return loadOk;
} }
@@ -9228,6 +9229,8 @@ bool PhysicsServerCommandProcessor::processInitPoseCommand(const struct SharedMe
} }
} }
syncPhysicsToGraphics2();
SharedMemoryStatus& serverCmd = serverStatusOut; SharedMemoryStatus& serverCmd = serverStatusOut;
serverCmd.m_type = CMD_CLIENT_COMMAND_COMPLETED; serverCmd.m_type = CMD_CLIENT_COMMAND_COMPLETED;
@@ -13007,6 +13010,7 @@ void PhysicsServerCommandProcessor::resetSimulation()
notification.m_notificationType = SIMULATION_RESET; notification.m_notificationType = SIMULATION_RESET;
m_data->m_pluginManager.addNotification(notification); m_data->m_pluginManager.addNotification(notification);
syncPhysicsToGraphics2();
} }