diff --git a/libraries/YarpCloudUtils/YarpCloudUtils-pcl.cpp b/libraries/YarpCloudUtils/YarpCloudUtils-pcl.cpp index 1edf7db1..c19b905d 100644 --- a/libraries/YarpCloudUtils/YarpCloudUtils-pcl.cpp +++ b/libraries/YarpCloudUtils/YarpCloudUtils-pcl.cpp @@ -141,7 +141,7 @@ namespace doMeshSubdivisionVTK(prev.getMesh(), curr.setMesh(), options); break; case "MovingLeastSquares"_hash: - if (options.check("computeNormals"), yarp::os::Value(false).asBool()) + if (options.check("computeNormals", yarp::os::Value(false)).asBool()) doMovingLeastSquares(prev.getCloud(), curr.setCloud(), options); else doMovingLeastSquares(prev.getCloud(), curr.setCloud(), options);