fix mesh finding and notification

This commit is contained in:
Chuyuan Fu
2020-04-01 20:48:09 -07:00
parent 3c46e6a584
commit c2ea0293d8
2 changed files with 33 additions and 16 deletions
@@ -8517,6 +8517,10 @@ bool PhysicsServerCommandProcessor::processDeformable(const UrdfDeformable& defo
std::string object_name(std::string(relativeFileName).substr(pos + 1, strlen(relativeFileName) - 5 - pos));
bodyHandle->m_bodyName = object_name;
}
b3Notification notification;
notification.m_notificationType = BODY_ADDED;
notification.m_bodyArgs.m_bodyUniqueId = *bodyUniqueId;
m_data->m_pluginManager.addNotification(notification);
}
return true;
}
@@ -8577,11 +8581,6 @@ bool PhysicsServerCommandProcessor::processLoadSoftBodyCommand(const struct Shar
InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId);
strcpy(serverStatusOut.m_dataStreamArguments.m_bodyName, body->m_bodyName.c_str());
serverStatusOut.m_loadSoftBodyResultArguments.m_objectUniqueId = bodyUniqueId;
b3Notification notification;
notification.m_notificationType = BODY_ADDED;
notification.m_bodyArgs.m_bodyUniqueId = bodyUniqueId;
m_data->m_pluginManager.addNotification(notification);
#endif
}
return hasStatus;