Browse Source

Now using new setTextureFromFile() rather than setTexture() in order to store the texture's source information.

Josh Wilson 20 years ago
parent
commit
ebdc7937c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/particles/Particles.py

+ 1 - 1
direct/src/particles/Particles.py

@@ -402,7 +402,7 @@ class Particles(ParticleSystem):
             for x in range(animCount):
             for x in range(animCount):
                 anim = self.renderer.getAnim(x)
                 anim = self.renderer.getAnim(x)
                 if(anim.getSourceType() == SpriteAnim.STTexture):
                 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:
                 else:
                     file.write(targ + '.renderer.%sTextureFromNode(\'%s\',\'%s\')\n' % ((x>0 and 'add' or 'set',)[0], anim.getModelSource(), anim.getNodeSource()))
                     file.write(targ + '.renderer.%sTextureFromNode(\'%s\',\'%s\')\n' % ((x>0 and 'add' or 'set',)[0], anim.getModelSource(), anim.getNodeSource()))
             sColor = self.renderer.getColor()
             sColor = self.renderer.getColor()