Don't import ParticleInterval if the ParticleSystem doesn't exist (ie., not compiled in)

This commit is contained in:
Zhao Huang 2011-12-15 04:45:40 +00:00
parent a34cb75f82
commit 33e1ead6c5

View File

@ -10,11 +10,15 @@ from FunctionInterval import *
from LerpInterval import * from LerpInterval import *
from IndirectInterval import * from IndirectInterval import *
from MopathInterval 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 SoundInterval import *
from ProjectileInterval import * from ProjectileInterval import *
from MetaInterval import * from MetaInterval import *
from IntervalManager import * from IntervalManager import *
if __debug__: if __debug__:
from TestInterval import * if hasattr( pandac.PandaModules, 'ParticleSystem' ):
from TestInterval import *
from pandac.PandaModules import WaitInterval from pandac.PandaModules import WaitInterval