diff --git a/src/meshlabplugins/filter_mls/mlsplugin.cpp b/src/meshlabplugins/filter_mls/mlsplugin.cpp index 525913c45..4913b9daf 100644 --- a/src/meshlabplugins/filter_mls/mlsplugin.cpp +++ b/src/meshlabplugins/filter_mls/mlsplugin.cpp @@ -409,7 +409,7 @@ bool MlsPlugin::applyFilter(QAction* filter, MeshDocument& md, RichParameterSet& // clone the control mesh MeshModel* ref = par.getMesh("ControlMesh"); pPoints = new MeshModel(); - pPoints->updateDataMask(ref->currentDataMask); + pPoints->updateDataMask(ref); vcg::tri::Append::Mesh(pPoints->cm, ref->cm, false, true); // the last true means "copy all vertices" vcg::tri::UpdateBounding::Box(pPoints->cm); pPoints->cm.Tr = ref->cm.Tr;