From 84002901e9d17c93174836db534f022d7a578a08 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 27 May 2009 18:45:48 +0000 Subject: [PATCH] Forgot a couple of files --- panda/src/pgraph/lensNode.cxx | 4 ++-- panda/src/pgraph/lensNode.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/panda/src/pgraph/lensNode.cxx b/panda/src/pgraph/lensNode.cxx index 76b6af98ae..ad7d9f5a73 100644 --- a/panda/src/pgraph/lensNode.cxx +++ b/panda/src/pgraph/lensNode.cxx @@ -29,9 +29,9 @@ TypeHandle LensNode::_type_handle; // Description: //////////////////////////////////////////////////////////////////// LensNode:: -LensNode(const string &name) : +LensNode(const string &name, Lens *lens) : PandaNode(name), - _lens(new PerspectiveLens()) + _lens(lens) { } diff --git a/panda/src/pgraph/lensNode.h b/panda/src/pgraph/lensNode.h index fcfa91c1e4..88dcd5aeb1 100644 --- a/panda/src/pgraph/lensNode.h +++ b/panda/src/pgraph/lensNode.h @@ -19,6 +19,7 @@ #include "pandaNode.h" #include "lens.h" +#include "perspectiveLens.h" #include "pointerTo.h" //////////////////////////////////////////////////////////////////// @@ -30,7 +31,7 @@ //////////////////////////////////////////////////////////////////// class EXPCL_PANDA_PGRAPH LensNode : public PandaNode { PUBLISHED: - LensNode(const string &name); + LensNode(const string &name, Lens *lens = new PerspectiveLens()); protected: LensNode(const LensNode ©);