mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 18:28:57 +00:00
Updated to get the frame names
This commit is contained in:
parent
ab48c1c479
commit
b45df05ddb
1 changed files with 10 additions and 1 deletions
|
@ -185,7 +185,16 @@ var ParticleEmitterManager = new Class({
|
|||
{
|
||||
this.frame = this.texture.get(frame);
|
||||
|
||||
this.frameNames = this.texture.getFramesFromTextureSource(this.frame.sourceIndex);
|
||||
var frames = this.texture.getFramesFromTextureSource(this.frame.sourceIndex);
|
||||
|
||||
var names = [];
|
||||
|
||||
frames.forEach(function (sourceFrame)
|
||||
{
|
||||
names.push(sourceFrame.name);
|
||||
});
|
||||
|
||||
this.frameNames = names;
|
||||
|
||||
this.defaultFrame = this.frame;
|
||||
|
||||
|
|
Loading…
Reference in a new issue