From acf57f25e64862486b5e7e61f6b66a27d9040670 Mon Sep 17 00:00:00 2001 From: Oleg Klimov Date: Sat, 6 May 2017 03:00:37 +0300 Subject: [PATCH] MJCF: change default link name to be more unique --- examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp b/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp index b6eb24b9a..ce49cf6f5 100644 --- a/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp +++ b/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp @@ -1025,9 +1025,9 @@ struct BulletMJCFImporterInternalData UrdfModel* modelPtr = m_models[modelIndex]; int orgChildLinkIndex = modelPtr->m_links.size(); UrdfLink* linkPtr = new UrdfLink(); - char uniqueLinkName[1024]; - sprintf(uniqueLinkName,"link%d",orgChildLinkIndex ); - linkPtr->m_name = uniqueLinkName; + char linkn[1024]; + sprintf(linkn, "link%d_%d", modelIndex, orgChildLinkIndex); + linkPtr->m_name = linkn; if (namePtr) { linkPtr->m_name = namePtr;