added privInstant to fix the self.__softStopped not found error

This commit is contained in:
Josh Wilson 2006-09-19 21:26:54 +00:00
parent ed482efbe7
commit bd08aaa977
1 changed files with 7 additions and 1 deletions

View File

@ -75,6 +75,8 @@ class ParticleInterval(Interval):
for particles in self.particleEffect.getParticlesList():
particles.setRenderParent(renderParent.node())
self.__softStopped = False
if softStopT == 0.0:
self.softStopT = duration
elif softStopT < 0.0:
@ -99,7 +101,6 @@ class ParticleInterval(Interval):
self.particleEffect.softStop()
self.__softStopped = True
def privInitialize(self, t):
if self.state != CInterval.SPaused:
# Restarting from a hard stop or just interrupting the
@ -115,6 +116,11 @@ class ParticleInterval(Interval):
Interval.privInitialize(self,t)
def privInstant(self):
self.privInitialize(self.getDuration())
self.state = CInterval.SFinal
self.intervalDone()
def privStep(self, t):
if self.state == CInterval.SPaused or t < self.currT:
# Restarting from a pause.