pybullet.getCameraImage: preparation to expose link index in segmentation mask buffer

This commit is contained in:
Erwin Coumans
2017-12-28 10:18:35 -08:00
parent 78e4d9675e
commit afd1066c50
7 changed files with 30 additions and 14 deletions

View File

@@ -629,7 +629,7 @@ void TinyRendererVisualShapeConverter::convertVisualShapes(
if (vertices.size() && indices.size())
{
TinyRenderObjectData* tinyObj = new TinyRenderObjectData(m_data->m_rgbColorBuffer,m_data->m_depthBuffer, &m_data->m_shadowBuffer, &m_data->m_segmentationMaskBuffer, bodyUniqueId);
TinyRenderObjectData* tinyObj = new TinyRenderObjectData(m_data->m_rgbColorBuffer,m_data->m_depthBuffer, &m_data->m_shadowBuffer, &m_data->m_segmentationMaskBuffer, bodyUniqueId, linkIndex);
unsigned char* textureImage1=0;
int textureWidth=0;
int textureHeight=0;