bug on search cycle corrected (it was looping forever with vertices and twice slower with other elements)

This commit is contained in:
ganovelli 2009-01-29 11:27:32 +00:00
parent b9949e8910
commit 573c151241
1 changed files with 2 additions and 2 deletions

View File

@ -476,8 +476,8 @@ namespace vcg{
CurrentElem = Elems.rbegin();
if ((!End())&& ToUpdate())
while ((!End())&& Refresh()&&(!_EndGrid()))
_NextShell();
do{_NextShell();}
while (Refresh()&&(!_EndGrid()));
}
ObjType &operator *(){return *((*CurrentElem).elem);}