diff --git a/src/meshlabplugins/io_base/baseio.cpp b/src/meshlabplugins/io_base/baseio.cpp index 92baf4ed1..ac90a5f1b 100644 --- a/src/meshlabplugins/io_base/baseio.cpp +++ b/src/meshlabplugins/io_base/baseio.cpp @@ -309,20 +309,23 @@ void BaseMeshIOPlugin::save(const QString &formatName, const QString &fileName, // custom attributes for (const RichParameter& pr : par) { QString pname = pr.name(); - if (pname.startsWith("PVAF")){ // if pname starts with PVAF, it is a PLY per-vertex float custom attribute - if (par.getBool(pname)){ // if it is true, add to save list + if (pname.startsWith("PVAF")) { // if pname starts with PVAF, it is a PLY per-vertex float custom attribute + if (par.getBool(pname)) { // if it is true, add to save list pi.addPerVertexScalarAttribute(qUtf8Printable(pname.mid(4)), scalarPlyType); } } - else if (pname.startsWith("PVA3F")){ // if pname starts with PVA3F, it is a PLY per-vertex point3f custom attribute - if (par.getBool(pname)) // if it is true, add to save list - pi.AddPerVertexPoint3fAttribute(m.cm, qUtf8Printable(pname.mid(5))); + else if (pname.startsWith("PVA3F")) { // if pname starts with PVA3F, it is a PLY per-vertex point3f custom attribute + if (par.getBool(pname)) { // if it is true, add to save list + pi.addPerVertexPoint3mAttribute(qUtf8Printable(pname.mid(5)), scalarPlyType); + } } - else if (pname.startsWith("PFAF")){ // if pname starts with PFAF, it is a PLY per-face float custom attribute - if (par.getBool(pname)) // if it is true, add to save list + else if (pname.startsWith("PFAF")) { // if pname starts with PFAF, it is a PLY per-face float custom attribute + if (par.getBool(pname)) { // if it is true, add to save list pi.addPerFaceScalarAttribute(qUtf8Printable(pname.mid(4)), scalarPlyType); + } } - else if (pname.startsWith("PFA3F")){ // if pname starts with PFA3F, it is a PLY per-face point3f custom attribute + else if (pname.startsWith("PFA3F")){ // if pname starts with PFA3F, it is a PLY per-face point3f custom attribute + //TODO //if (par.findParameter(pname)->value().getBool()) // if it is true, add to save list //pi.add(m, qUtf8Printable(pname.mid(5))); } diff --git a/src/vcglib b/src/vcglib index d4718bde6..6509139fc 160000 --- a/src/vcglib +++ b/src/vcglib @@ -1 +1 @@ -Subproject commit d4718bde6a1a9b0ceae22efaf825d87ea9216f43 +Subproject commit 6509139fc67909ca20fb23942b944cec31b10cf0