diff --git a/vcg/complex/algorithms/update/flag.h b/vcg/complex/algorithms/update/flag.h index 6d31eb5d..fe1e24b6 100644 --- a/vcg/complex/algorithms/update/flag.h +++ b/vcg/complex/algorithms/update/flag.h @@ -147,7 +147,7 @@ public: RequireFFAdjacency(m); for(FaceIterator fi=m.face.begin();fi!=m.face.end();++fi)if(!(*fi).IsD()) - for(int j=0;j<3;++j) + for(int j=0;jVN();++j) { if(face::IsBorder(*fi,j)) (*fi).SetB(j); else (*fi).ClearB(j);