Got rid of hidden bloat by detaching node instead

This commit is contained in:
Mark Mine 2003-10-14 23:32:17 +00:00
parent ae75c640a9
commit 6f6c626166

View File

@ -128,7 +128,7 @@ class ParticleEffect(NodePath):
if (particles == None):
self.notify.warning('removeParticles() - particles == None!')
return
particles.nodePath.reparentTo(hidden)
particles.nodePath.detachNode()
del self.particlesDict[particles.getName()]
# Remove all forces from the particles