diff --git a/vcg/complex/algorithms/update/selection.h b/vcg/complex/algorithms/update/selection.h index b7e229f5..9592ce2b 100644 --- a/vcg/complex/algorithms/update/selection.h +++ b/vcg/complex/algorithms/update/selection.h @@ -51,7 +51,7 @@ public: vsHandle vsH = Allocator::template AddPerVertexAttribute< bool >(*_m); esHandle esH = Allocator::template AddPerEdgeAttribute< bool > (*_m); fsHandle fsH = Allocator::template AddPerFaceAttribute< bool > (*_m); - fsHandle tsH = Allocator::template AddPerTetraAttribute< bool > (*_m); + tsHandle tsH = Allocator::template AddPerTetraAttribute< bool > (*_m); typename ComputeMeshType::VertexIterator vi; for(vi = _m->vert.begin(); vi != _m->vert.end(); ++vi) if( !(*vi).IsD() ) vsH[*vi] = (*vi).IsS() ; @@ -132,10 +132,10 @@ public: } } - for (auto ti = _m->tetra.begin(); ti != _m.tetra.end(); ++ti) + for (auto ti = _m->tetra.begin(); ti != _m->tetra.end(); ++ti) if (!(*ti).IsD()) { - if (fsH[*ti]) { + if (tsH[*ti]) { if (!andFlag) (*ti).SetS(); } else { if (!orFlag) (*ti).ClearS(); @@ -159,7 +159,7 @@ private: std::vector vsV; std::vector esV; std::vector fsV; - std::vector tsV; + std::vector tsV; };