mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
Warn for missing texture frames
This commit is contained in:
parent
e23d50eb04
commit
da86ea7029
1 changed files with 6 additions and 0 deletions
|
@ -245,6 +245,10 @@ var ParticleEmitterManager = new Class({
|
||||||
{
|
{
|
||||||
out.push(this.texture.get(frame));
|
out.push(this.texture.get(frame));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
console.warn('Texture "%s" has no frame "%s"', this.texture.key, frame);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (out.length > 0)
|
if (out.length > 0)
|
||||||
|
@ -253,6 +257,8 @@ var ParticleEmitterManager = new Class({
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
console.warn('No texture frames were set');
|
||||||
|
|
||||||
emitter.defaultFrame = this.defaultFrame;
|
emitter.defaultFrame = this.defaultFrame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue