mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Now using new setTextureFromFile() rather than setTexture() in order to store the texture's source information.
This commit is contained in:
parent
e660f53c6d
commit
ebdc7937c1
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user