Prechádzať zdrojové kódy

fix missing return value

David Rose 21 rokov pred
rodič
commit
fa52cb7b11

+ 1 - 1
panda/src/pgraph/fadeLodNode.I

@@ -183,7 +183,7 @@ get_center() const {
 //       Access: Published
 //       Access: Published
 //  Description: set the time taken to complete an LOD switch
 //  Description: set the time taken to complete an LOD switch
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
-INLINE FadeLODNode::
+INLINE void FadeLODNode::
 set_fade_time(float t) {
 set_fade_time(float t) {
   CDWriter cdata(_cycler);
   CDWriter cdata(_cycler);
   cdata->_fade_time = t;
   cdata->_fade_time = t;

+ 1 - 1
panda/src/pgraph/fadeLodNode.h

@@ -61,7 +61,7 @@ PUBLISHED:
   INLINE void set_center(const LPoint3f &center);
   INLINE void set_center(const LPoint3f &center);
   INLINE const LPoint3f &get_center() const;
   INLINE const LPoint3f &get_center() const;
 
 
-  INLINE set_fade_time(float t);
+  INLINE void set_fade_time(float t);
   INLINE float get_fade_time() const;
   INLINE float get_fade_time() const;
 
 
 public:
 public: