From 33e1ead6c5d2632515fb7124f484545813c7f87d Mon Sep 17 00:00:00 2001 From: Zhao Huang Date: Thu, 15 Dec 2011 04:45:40 +0000 Subject: [PATCH] Don't import ParticleInterval if the ParticleSystem doesn't exist (ie., not compiled in) --- direct/src/interval/IntervalGlobal.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/direct/src/interval/IntervalGlobal.py b/direct/src/interval/IntervalGlobal.py index 5e61efbf80..ecc9abb6ad 100644 --- a/direct/src/interval/IntervalGlobal.py +++ b/direct/src/interval/IntervalGlobal.py @@ -10,11 +10,15 @@ from FunctionInterval import * from LerpInterval import * from IndirectInterval import * from MopathInterval import * -from ParticleInterval import * +import pandac.PandaModules +##Some people may have the particle system compiled out +if hasattr( pandac.PandaModules, 'ParticleSystem' ): + from ParticleInterval import * from SoundInterval import * from ProjectileInterval import * from MetaInterval import * from IntervalManager import * if __debug__: - from TestInterval import * + if hasattr( pandac.PandaModules, 'ParticleSystem' ): + from TestInterval import * from pandac.PandaModules import WaitInterval