From 5a2ed7b59d6809df57a3779c3688d4fda3de98b0 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sun, 22 Jan 2006 17:01:40 +0000 Subject: [PATCH] Corrected intialization of flag, must be zero. --- vcg/math/shot.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/math/shot.h b/vcg/math/shot.h index 4fd7bae4..c3e5a1e5 100644 --- a/vcg/math/shot.h +++ b/vcg/math/shot.h @@ -23,6 +23,9 @@ /**************************************************************************** History $Log: not supported by cvs2svn $ +Revision 1.18 2005/12/12 16:53:43 callieri +corrected UnProject, it's necessary also a ZDepth value to perform inverse projection + Revision 1.17 2005/12/07 10:57:52 callieri added commodity function ProjectWorldtoViewport() to obtain directly pixel indices without calling two separate function of two different objects @@ -104,7 +107,7 @@ protected: public: - Shot( Camera & c):camera(c){similarity.SetIdentity();} + Shot( Camera & c):camera(c){similarity.SetIdentity();flags=0;} Shot():camera(*new vcg::Camera()){similarity.SetIdentity();flags|=CREATED_EMPTY;} ~Shot(){if(flags&CREATED_EMPTY) delete &camera;}