From da98ec18f19663d79e28ae04ab5d31870665e384 Mon Sep 17 00:00:00 2001 From: maxcorsini Date: Wed, 12 Oct 2011 07:52:07 +0000 Subject: [PATCH] --- wrap/gl/shot.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wrap/gl/shot.h b/wrap/gl/shot.h index 38af4683..d6d2845d 100644 --- a/wrap/gl/shot.h +++ b/wrap/gl/shot.h @@ -178,14 +178,11 @@ static void GetNearFarPlanes(vcg::Shot & shot, vcg::Box3 for(int i = 0; i < 8; i++) { vcg::Point3 c = bbox.P(i); ScalarType d = -(zaxis * c - offset); - if(first || d < nr) { + if(first || d < nr) nr = d; - first = false; - } - if(first || d > fr) { + if(first || d > fr) fr = d; - first = false; - } + first = false; } }