Correct number of merged vertices

This commit is contained in:
Paolo Cignoni 2018-02-20 21:24:28 +01:00
parent 19296e27b9
commit 735391f996
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ static int WedgeTexMergeClose(ComputeMeshType &m, ScalarType mergeThr = ScalarTy
UVCoordType cur= vfi.F()->WT(vfi.I()).P();
bool merged=false;
for(auto p:clusterVec) {
if(Distance(p,cur) < mergeThr){
if(p!=cur && Distance(p,cur) < mergeThr){
vfi.F()->WT(vfi.I()).P()=p;
++mergedCnt;
merged=true;