From 9d83449006a0b58fc49544cbf734538975f95b3e Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 7 Feb 2012 23:01:56 +0000 Subject: [PATCH] expose Lens::get_last_change() --- panda/src/gobj/lens.I | 4 ++-- panda/src/gobj/lens.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/panda/src/gobj/lens.I b/panda/src/gobj/lens.I index 0fa6533ffe..80fa8df021 100644 --- a/panda/src/gobj/lens.I +++ b/panda/src/gobj/lens.I @@ -743,13 +743,13 @@ get_lens_mat_inv() const { //////////////////////////////////////////////////////////////////// // Function: Lens::get_last_change -// Access: Public +// Access: Published // Description: Returns the UpdateSeq that is incremented whenever // the lens properties are changed. As long as this // number remains the same, you may assume the lens // properties are unchanged. //////////////////////////////////////////////////////////////////// -INLINE const UpdateSeq &Lens:: +INLINE UpdateSeq Lens:: get_last_change() const { CDReader cdata(_cycler); return cdata->_last_change; diff --git a/panda/src/gobj/lens.h b/panda/src/gobj/lens.h index 9b84341bdd..63e34cc412 100644 --- a/panda/src/gobj/lens.h +++ b/panda/src/gobj/lens.h @@ -166,8 +166,7 @@ PUBLISHED: virtual void output(ostream &out) const; virtual void write(ostream &out, int indent_level = 0) const; -public: - INLINE const UpdateSeq &get_last_change() const; + INLINE UpdateSeq get_last_change() const; protected: class CData;