mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
Make Texture.add() firstFrame check more explicit
Fixes issue #4088 where a SpriteSheet created from a trimmed texture atlas frame returns the second frame when the first frame is requested.
This commit is contained in:
parent
2a1ea30cb7
commit
0d7d828311
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ var Texture = new Class({
|
|||
// This is used to ensure we don't spam the display with entire
|
||||
// atlases of sprite sheets, but instead just the first frame of them
|
||||
// should the dev incorrectly specify the frame index
|
||||
if (this.frameTotal === 1)
|
||||
if (this.firstFrame === '__BASE')
|
||||
{
|
||||
this.firstFrame = name;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue