From e8f773ba1ad5d3a0d64c4fc0a32a990013e368ee Mon Sep 17 00:00:00 2001 From: Marco Callieri Date: Fri, 28 Apr 2017 14:54:48 +0200 Subject: [PATCH] corrected tests for "same mesh" error --- src/meshlabplugins/filter_sampling/filter_sampling.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meshlabplugins/filter_sampling/filter_sampling.cpp b/src/meshlabplugins/filter_sampling/filter_sampling.cpp index 5efe3ce63..7e91983b8 100644 --- a/src/meshlabplugins/filter_sampling/filter_sampling.cpp +++ b/src/meshlabplugins/filter_sampling/filter_sampling.cpp @@ -1021,7 +1021,7 @@ switch(ID(action)) bool sampleFace=par.getBool("SampleFace"); float distUpperBound = par.getAbsPerc("MaxDist"); - if (mm0 = mm1){ + if (mm0 == mm1){ Log("Housdorff Distance: cannot compute, it is the same mesh"); errorMessage = "Cannot compute, it is the same mesh"; return false; // can't continue, mesh can't be processed @@ -1103,7 +1103,7 @@ switch(ID(action)) bool useSigned = par.getBool("SignedDist"); float maxDistABS = par.getAbsPerc("MaxDist"); - if (mm0 = mm1){ + if (mm0 == mm1){ Log("Distance from Reference: cannot compute, it is the same mesh"); errorMessage = "Cannot compute, it is the same mesh"; return false; // can't continue, mesh can't be processed @@ -1154,7 +1154,7 @@ switch(ID(action)) bool selectionT = par.getBool("SelectionTransfer"); bool distquality = par.getBool("QualityDistance"); - if (srcMesh = trgMesh){ + if (srcMesh == trgMesh){ Log("Vertex Attribute Transfer: cannot compute, it is the same mesh"); errorMessage = "Cannot compute, it is the same mesh"; return false; // can't continue, mesh can't be processed