Warn for missing texture frames

This commit is contained in:
samme 2021-09-23 11:15:29 -07:00
parent e23d50eb04
commit da86ea7029

View file

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