Fixed bug in Refresh() ray iterator (Elems.size() > 0).
This commit is contained in:
parent
1ad3bfb230
commit
7d23e4284b
|
@ -179,7 +179,9 @@ namespace vcg{
|
|||
std::sort(Elems.begin(),Elems.end());
|
||||
|
||||
CurrentElem=Elems.end();
|
||||
CurrentElem--;
|
||||
if (Elems.size() > 0) {
|
||||
CurrentElem--;
|
||||
}
|
||||
|
||||
return((Elems.size()==0)||(Dist()>dist));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue