ソースを参照

expose Lens::get_last_change()

David Rose 14 年 前
コミット
9d83449006
2 ファイル変更3 行追加4 行削除
  1. 2 2
      panda/src/gobj/lens.I
  2. 1 2
      panda/src/gobj/lens.h

+ 2 - 2
panda/src/gobj/lens.I

@@ -743,13 +743,13 @@ get_lens_mat_inv() const {
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: Lens::get_last_change
 //     Function: Lens::get_last_change
-//       Access: Public
+//       Access: Published
 //  Description: Returns the UpdateSeq that is incremented whenever
 //  Description: Returns the UpdateSeq that is incremented whenever
 //               the lens properties are changed.  As long as this
 //               the lens properties are changed.  As long as this
 //               number remains the same, you may assume the lens
 //               number remains the same, you may assume the lens
 //               properties are unchanged.
 //               properties are unchanged.
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
-INLINE const UpdateSeq &Lens::
+INLINE UpdateSeq Lens::
 get_last_change() const {
 get_last_change() const {
   CDReader cdata(_cycler);
   CDReader cdata(_cycler);
   return cdata->_last_change;
   return cdata->_last_change;

+ 1 - 2
panda/src/gobj/lens.h

@@ -166,8 +166,7 @@ PUBLISHED:
   virtual void output(ostream &out) const;
   virtual void output(ostream &out) const;
   virtual void write(ostream &out, int indent_level = 0) 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:
 protected:
   class CData;
   class CData;