Browse Source

fix reverse interval

David Rose 22 years ago
parent
commit
25977a911d
1 changed files with 6 additions and 2 deletions
  1. 6 2
      direct/src/interval/ActorInterval.py

+ 6 - 2
direct/src/interval/ActorInterval.py

@@ -123,8 +123,12 @@ class ActorInterval(Interval.Interval):
             # implicit.  This is necessary only to guard against
             # implicit.  This is necessary only to guard against
             # possible roundoff error in computing the final frame
             # possible roundoff error in computing the final frame
             # from the duration.
             # from the duration.
-            for control in self.controls:
-                control.pose(self.endFrame)
+            if self.reverse:
+                for control in self.controls:
+                    control.pose(self.startFrame)
+            else:
+                for control in self.controls:
+                    control.pose(self.endFrame)
 
 
         else:
         else:
             # Otherwise, the user-specified duration determines which
             # Otherwise, the user-specified duration determines which