diff --git a/vcg/complex/algorithms/clean.h b/vcg/complex/algorithms/clean.h index 53f99093..54f7eca4 100644 --- a/vcg/complex/algorithms/clean.h +++ b/vcg/complex/algorithms/clean.h @@ -419,7 +419,7 @@ public: if(!DeleteVertexFlag) - return std::count(referredVec.begin(),referredVec.end(),true); + return std::count(referredVec.begin(),referredVec.end(),false); for(auto vi=m.vert.begin();vi!=m.vert.end();++vi) if( (!(*vi).IsD()) && (!referredVec[tri::Index(m,*vi)]) )