Explorar el Código

stop() should not activate animation

David Rose hace 19 años
padre
commit
cffaa54239
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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::
 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.
 }
 
 ////////////////////////////////////////////////////////////////////