diff --git a/direct/src/interval/ProjectileInterval.py b/direct/src/interval/ProjectileInterval.py index 64f224f82c..324d30d29d 100755 --- a/direct/src/interval/ProjectileInterval.py +++ b/direct/src/interval/ProjectileInterval.py @@ -65,10 +65,11 @@ class ProjectileInterval(Interval): # position; delay until the interval is actually started self.trajectoryArgs = args self.needToCalcTraj = 1 + self.duration = duration else: self.__calcTrajectory(*args) - Interval.__init__(self, name, duration) + Interval.__init__(self, name, self.duration) def __calcTrajectory(self, startPos = None, endPos = None, duration = None,