Corrected intialization of flag, must be zero.

This commit is contained in:
Paolo Cignoni 2006-01-22 17:01:40 +00:00
parent f5a5f77728
commit 5a2ed7b59d
1 changed files with 4 additions and 1 deletions

View File

@ -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<S> & c):camera(c){similarity.SetIdentity();}
Shot( Camera<S> & c):camera(c){similarity.SetIdentity();flags=0;}
Shot():camera(*new vcg::Camera<S>()){similarity.SetIdentity();flags|=CREATED_EMPTY;}
~Shot(){if(flags&CREATED_EMPTY) delete &camera;}