From bd08aaa977a3cacbcb4b832e5d437bd5f3296251 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Tue, 19 Sep 2006 21:26:54 +0000 Subject: [PATCH] added privInstant to fix the self.__softStopped not found error --- direct/src/interval/ParticleInterval.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/direct/src/interval/ParticleInterval.py b/direct/src/interval/ParticleInterval.py index dabefeaa06..e9326813f7 100644 --- a/direct/src/interval/ParticleInterval.py +++ b/direct/src/interval/ParticleInterval.py @@ -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.