Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/meshlab/dialogs/save_mesh_attributes_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ bool SaveMeshAttributesDialog::shouldBeChecked(int bit, int /*capabilityBits*/,

void SaveMeshAttributesDialog::updateMask()
{
int newmask = 0;
// Edge connectivity is topology, not an optional per-element attribute, and
// therefore has no checkbox in this dialog. Preserve it when the exporter
// includes it in its default mask.
int newmask = defaultBits & vcg::tri::io::Mask::IOM_EDGEINDEX;

if( ui->check_iom_vertflags->isChecked() ) { newmask |= vcg::tri::io::Mask::IOM_VERTFLAGS;}
if( ui->check_iom_vertcolor->isChecked() ) { newmask |= vcg::tri::io::Mask::IOM_VERTCOLOR;}
Expand Down Expand Up @@ -319,4 +322,3 @@ void SaveMeshAttributesDialog::on_textureQualitySpinBox_valueChanged(int arg1)
ui->textureQualitySpinBox->setSuffix("");
}
}

2 changes: 1 addition & 1 deletion src/meshlabplugins/io_base/baseio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ void BaseMeshIOPlugin::saveProject(
void BaseMeshIOPlugin::exportMaskCapability(const QString &format, int &capability, int &defaultBits) const
{
if (format.toUpper() == tr("PLY")) {
capability = tri::io::ExporterPLY<CMeshO>::GetExportMaskCapability();
capability = tri::io::ExporterPLY<CMeshO>::GetExportMaskCapability() | tri::io::Mask::IOM_EDGEINDEX;
// For the default bits of the ply format disable flags and normals that usually are not useful.
defaultBits = capability;
defaultBits &= (~tri::io::Mask::IOM_FLAGS);
Expand Down
Loading