fix regression in MJCF import for TinyRenderer

Fixes Issue 2119
https://github.com/bulletphysics/bullet3/issues/2119
This commit is contained in:
erwincoumans
2019-03-03 12:01:49 -08:00
parent 23dd0b50f9
commit d07c86842c

View File

@@ -2251,7 +2251,8 @@ void BulletMJCFImporter::convertLinkVisualShapes2(int linkIndex, int urdfIndex,
if (m_data->m_customVisualShapesConverter)
{
const UrdfLink* link = m_data->getLink(m_data->m_activeModel, urdfIndex);
m_data->m_customVisualShapesConverter->convertVisualShapes(linkIndex, pathPrefix, inertialFrame, link, 0, colObj->getBroadphaseHandle()->getUid(), objectIndex, m_data->m_fileIO);
int uid3 = m_data->m_customVisualShapesConverter->convertVisualShapes(linkIndex, pathPrefix, inertialFrame, link, 0, colObj->getBroadphaseHandle()->getUid(), objectIndex, m_data->m_fileIO);
colObj->setUserIndex3(uid3);
}
}