Made the member with the distfunctor no more a reference but a copy. To avoid issues when passing temporary dist functors...

This commit is contained in:
Paolo Cignoni 2012-10-18 09:01:51 +00:00
parent d3d85dd0c0
commit f96cbbe7e4
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ namespace vcg{
ScalarType step_size; //radius step
std::vector<Entry_Type> Elems; //element loaded from the current sphere
DISTFUNCTOR &dist_funct;
DISTFUNCTOR dist_funct;
TMARKER tm;
typedef typename std::vector<Entry_Type>::reverse_iterator ElemIterator;