Tango: doing mesh decimation only when texturing

This commit is contained in:
matlabbe
2017-02-05 18:04:22 -05:00
parent f7616f6e94
commit 3a9b725c0c
2 changed files with 2 additions and 2 deletions

View File

@@ -1578,7 +1578,7 @@ bool RTABMapApp::exportMesh(
if(mesh->polygons.size())
{
if(optimizedDecimationFactor > 0.0f)
if(textureSize > 0 && optimizedDecimationFactor > 0.0f)
{
#ifndef DISABLE_VTK
unsigned int count = mesh->polygons.size();