protect DirectSelection stuff from shipping
This commit is contained in:
parent
1dfd553b06
commit
1f23a24db3
|
|
@ -126,12 +126,13 @@ class Particles(ParticleSystem.ParticleSystem):
|
|||
self.renderer = LineParticleRenderer.LineParticleRenderer()
|
||||
elif (type == "GeomParticleRenderer"):
|
||||
self.renderer = GeomParticleRenderer.GeomParticleRenderer()
|
||||
npath = NodePath('default-geom')
|
||||
# This was moved here because we do not want to download
|
||||
# the direct tools with toontown.
|
||||
from direct.directtools import DirectSelection
|
||||
bbox = DirectSelection.DirectBoundingBox(npath)
|
||||
self.renderer.setGeomNode(bbox.lines.node())
|
||||
if __dev__:
|
||||
from direct.directtools import DirectSelection
|
||||
npath = NodePath('default-geom')
|
||||
bbox = DirectSelection.DirectBoundingBox(npath)
|
||||
self.renderer.setGeomNode(bbox.lines.node())
|
||||
elif (type == "SparkleParticleRenderer"):
|
||||
self.renderer = SparkleParticleRenderer.SparkleParticleRenderer()
|
||||
elif (type == "SpriteParticleRenderer"):
|
||||
|
|
|
|||
Loading…
Reference in New Issue