diff --git a/direct/src/interval/LerpInterval.py b/direct/src/interval/LerpInterval.py index 49afd09a14..4cae60a316 100644 --- a/direct/src/interval/LerpInterval.py +++ b/direct/src/interval/LerpInterval.py @@ -24,9 +24,7 @@ class LerpInterval(Interval): self.lerp = Lerp.Lerp(self.functorFunc(), self.duration, self.blendType) # Make sure lerp exists - try: - self.lerp - except AttributeError: + if (not self.lerp): self.lerp = Lerp.Lerp(self.functorFunc(), self.duration, self.blendType) # Evaluate the lerp