From 04f13327206fc71d1bed0746cd868d78a2282ea7 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Wed, 4 Aug 2021 09:23:17 +0200 Subject: [PATCH] fix conditional selection in double precision version --- src/meshlabplugins/filter_func/filter_func.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshlabplugins/filter_func/filter_func.cpp b/src/meshlabplugins/filter_func/filter_func.cpp index 6fc9fd3e8..4c716de29 100644 --- a/src/meshlabplugins/filter_func/filter_func.cpp +++ b/src/meshlabplugins/filter_func/filter_func.cpp @@ -1281,7 +1281,7 @@ void FilterFunctionPlugin::setPerVertexVariables(Parser &p, CMeshO &m) qDebug("Adding custom per vertex float variable %s",v_attrNames.back().c_str()); } AllVertexAttribName.clear(); - tri::Allocator::GetAllPerVertexAttribute< Point3f >(m,AllVertexAttribName); + tri::Allocator::GetAllPerVertexAttribute< Point3m >(m,AllVertexAttribName); for(int i = 0; i < (int) AllVertexAttribName.size(); i++) { CMeshO::PerVertexAttributeHandle hh3 = tri::Allocator::GetPerVertexAttribute(m, AllVertexAttribName[i]); @@ -1391,7 +1391,7 @@ void FilterFunctionPlugin::setPerFaceVariables(Parser &p, CMeshO &m) // define var for user-defined attributes (if any exists) // if vector is empty, code won't be executed std::vector AllFaceAttribName; - tri::Allocator::GetAllPerFaceAttribute< float >(m,AllFaceAttribName); + tri::Allocator::GetAllPerFaceAttribute< Scalarm >(m,AllFaceAttribName); f_handlers.clear(); f_attrNames.clear(); f_attrValue.clear();