From ebdc7937c158736958466c6f184661a49060a3c9 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Wed, 28 Sep 2005 22:18:57 +0000 Subject: [PATCH] Now using new setTextureFromFile() rather than setTexture() in order to store the texture's source information. --- direct/src/particles/Particles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/particles/Particles.py b/direct/src/particles/Particles.py index f74e2adebf..fd06e51ef7 100644 --- a/direct/src/particles/Particles.py +++ b/direct/src/particles/Particles.py @@ -402,7 +402,7 @@ class Particles(ParticleSystem): for x in range(animCount): anim = self.renderer.getAnim(x) if(anim.getSourceType() == SpriteAnim.STTexture): - file.write(targ + '.renderer.%sTexture(loader.loadTexture(\'%s\'))\n' % ((x>0 and 'add' or 'set',)[0], anim.getTexSource())) + file.write(targ + '.renderer.%sTextureFromFile(\'%s\')\n' % ((x>0 and 'add' or 'set',)[0], anim.getTexSource())) else: file.write(targ + '.renderer.%sTextureFromNode(\'%s\',\'%s\')\n' % ((x>0 and 'add' or 'set',)[0], anim.getModelSource(), anim.getNodeSource())) sColor = self.renderer.getColor()