*** empty log message ***

This commit is contained in:
Mike Goslin 2001-01-27 03:05:05 +00:00
parent 88c7cf9073
commit 65f122b2d4
2 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import SphereVolumeEmitter
import TangentRingEmitter import TangentRingEmitter
import string import string
import os import os
import DirectSelection
SparkleParticleRenderer.SparkleParticleRenderer.SPNOSCALE = 0 SparkleParticleRenderer.SparkleParticleRenderer.SPNOSCALE = 0
SparkleParticleRenderer.SparkleParticleRenderer.SPSCALE = 1 SparkleParticleRenderer.SparkleParticleRenderer.SPSCALE = 1
@ -105,6 +106,9 @@ class Particles(ParticleSystem.ParticleSystem):
self.renderer = LineParticleRenderer.LineParticleRenderer() self.renderer = LineParticleRenderer.LineParticleRenderer()
elif (type == "GeomParticleRenderer"): elif (type == "GeomParticleRenderer"):
self.renderer = GeomParticleRenderer.GeomParticleRenderer() self.renderer = GeomParticleRenderer.GeomParticleRenderer()
npath = hidden.attachNewNode(NamedNode('default-geom'))
bbox = DirectSelection.DirectBoundingBox(npath)
self.renderer.setGeomNode(bbox.lines.node())
elif (type == "SparkleParticleRenderer"): elif (type == "SparkleParticleRenderer"):
self.renderer = SparkleParticleRenderer.SparkleParticleRenderer() self.renderer = SparkleParticleRenderer.SparkleParticleRenderer()
elif (type == "SpriteParticleRenderer"): elif (type == "SpriteParticleRenderer"):

View File

@ -1077,7 +1077,10 @@ class ParticlePanel(AppShell):
color[2]/255.0, color[3]/255.0)) color[2]/255.0, color[3]/255.0))
# Geom # # Geom #
def setRendererGeomNode(self, event): def setRendererGeomNode(self, event):
self.particles.renderer.setGeomNode(self.rendererGeomNode.get()) node = loader.loadOnce(self.rendererGeomNode.get())
if (node == None):
return None
self.particles.renderer.setGeomNode(node)
# Point # # Point #
def setRendererPointSize(self, size): def setRendererPointSize(self, size):
self.particles.renderer.setPointSize(size) self.particles.renderer.setPointSize(size)