Explorar el Código

wait_pending should return void

David Rose hace 17 años
padre
commit
57bbde2ab2

+ 1 - 1
panda/src/chan/animControl.cxx

@@ -115,7 +115,7 @@ AnimControl::
 //  Description: Blocks the current thread until the AnimControl has
 //               finished loading and is fully bound.
 ////////////////////////////////////////////////////////////////////
-bool AnimControl::
+void AnimControl::
 wait_pending() {
   MutexHolder holder(_pending_lock);
   while (_pending) {

+ 1 - 1
panda/src/chan/animControl.h

@@ -50,7 +50,7 @@ PUBLISHED:
   virtual ~AnimControl();
 
   INLINE bool is_pending() const;
-  bool wait_pending();
+  void wait_pending();
   INLINE bool has_anim() const;
   void set_pending_done_event(const string &done_event);
   string get_pending_done_event() const;

+ 1 - 1
panda/src/chan/partBundle.cxx

@@ -369,7 +369,7 @@ load_bind_anim(Loader *loader, const Filename &filename,
 //               AnimControls, with a nonzero control effect, have
 //               been loaded and are properly bound.
 ////////////////////////////////////////////////////////////////////
-bool PartBundle::
+void PartBundle::
 wait_pending() {
   CDReader cdata(_cycler);
   ChannelBlend::const_iterator cbi;

+ 1 - 1
panda/src/chan/partBundle.h

@@ -133,7 +133,7 @@ PUBLISHED:
                                  int hierarchy_match_flags,
                                  const PartSubset &subset,
                                  bool allow_async);
-  bool wait_pending();
+  void wait_pending();
 
   bool freeze_joint(const string &joint_name, const TransformState *transform);
   bool control_joint(const string &joint_name, PandaNode *node);