diff --git a/direct/src/particles/Particles.py b/direct/src/particles/Particles.py index 2c3719cc08..bb20b5846a 100644 --- a/direct/src/particles/Particles.py +++ b/direct/src/particles/Particles.py @@ -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"):