Update TinyRendererVisualShapeConverter.cpp

only create a texture for a plane, not sphere (backward compatibility tests break)
This commit is contained in:
erwincoumans
2020-08-12 10:12:45 -07:00
committed by GitHub
parent 17d373db55
commit e52a30de68

View File

@@ -836,7 +836,7 @@ int TinyRendererVisualShapeConverter::convertVisualShapes(
{
B3_PROFILE("convertURDFToVisualShape");
convertURDFToVisualShape(vis, pathPrefix, localInertiaFrame.inverse() * childTrans, vertices, indices, textures, visualShape, fileIO, m_data->m_flags);
if ((vis->m_geometry.m_type == URDF_GEOM_PLANE) || (vis->m_geometry.m_type == URDF_GEOM_SPHERE))
if (vis->m_geometry.m_type == URDF_GEOM_PLANE)
{
int texWidth = 1024;
int texHeight = 1024;