mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 02:24:38 +00:00
corrected tests for "same mesh" error
This commit is contained in:
parent
7c3d2ce74a
commit
e8f773ba1a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user