From e2e948dbd6a96baa27eeb61efe089a8896b9522b Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Tue, 18 Sep 2012 15:18:33 +0000 Subject: [PATCH] added cast to float lines 308 309 --- vcg/complex/algorithms/update/color.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/complex/algorithms/update/color.h b/vcg/complex/algorithms/update/color.h index 710de738..17d15dd8 100644 --- a/vcg/complex/algorithms/update/color.h +++ b/vcg/complex/algorithms/update/color.h @@ -304,8 +304,8 @@ static void FaceQualityRamp(UpdateMeshType &m,bool selected=false) for(fi=m.face.begin();fi!=m.face.end();++fi) if(!(*fi).IsD()) if(!selected || (*fi).IsS()) { - minq=std::min(minq,(*fi).Q()); - maxq=std::max(maxq,(*fi).Q()); + minq=std::min(minq,(float)(*fi).Q()); + maxq=std::max(maxq,(float)(*fi).Q()); } FaceQualityRamp(m,minq,maxq,selected);