Use bitand instead of logical AND for bitmask

This commit is contained in:
Norbert Wenzel 2019-10-20 13:43:32 +02:00
parent f6c6675baa
commit 445cc30ada

View File

@ -363,7 +363,7 @@ bool BaseMeshIOPlugin::save(const QString &formatName, const QString &fileName,
}
if (formatName.toUpper() == tr("OFF"))
{
if (mask && tri::io::Mask::IOM_BITPOLYGONAL)
if (mask & tri::io::Mask::IOM_BITPOLYGONAL)
m.updateDataMask(MeshModel::MM_FACEFACETOPO);
int result = tri::io::ExporterOFF<CMeshO>::Save(m.cm, filename.c_str(), mask);
if (result != 0)