mirror of
https://github.com/photonstorm/phaser
synced 2024-12-01 00:49:41 +00:00
Print texture key in warning for zero frames
This commit is contained in:
parent
d6e8600766
commit
00d645e438
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue