Print texture key in warning for zero frames

This commit is contained in:
samme 2020-05-08 10:31:20 -07:00
parent d6e8600766
commit 00d645e438

View file

@ -60,7 +60,7 @@ var SpriteSheet = function (texture, sourceIndex, x, y, width, height, config)
if (total === 0) if (total === 0)
{ {
console.warn('SpriteSheet frame dimensions will result in zero frames.'); console.warn('SpriteSheet frame dimensions will result in zero frames for texture:', texture.key);
} }
if (startFrame > total || startFrame < -total) if (startFrame > total || startFrame < -total)