Browse Source

stop() should not activate animation

David Rose 19 years ago
parent
commit
cffaa54239
1 changed files with 5 additions and 1 deletions
  1. 5 1
      panda/src/putil/animInterface.I

+ 5 - 1
panda/src/putil/animInterface.I

@@ -119,7 +119,11 @@ pingpong(bool restart, double from, double to) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE void AnimInterface::
 INLINE void AnimInterface::
 stop() {
 stop() {
-  pose(get_full_fframe());
+  CDWriter cdata(_cycler);
+  cdata->pose(cdata->get_full_fframe());
+
+  // Don't call animation_activated() here; stopping an animation
+  // should not activate it.
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////