Updated to get the frame names

This commit is contained in:
Richard Davey 2018-09-27 14:15:58 +01:00
parent ab48c1c479
commit b45df05ddb

View file

@ -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;