Explorar o código

fix reverse interval

David Rose %!s(int64=22) %!d(string=hai) anos
pai
achega
25977a911d
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  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
             # possible roundoff error in computing the final frame
             # 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:
             # Otherwise, the user-specified duration determines which