mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Merge pull request #4089 from Cirras/texture-add-base-texture-fix
Make Texture.add() firstFrame check more explicit (Fix issue #4088)
This commit is contained in:
commit
56babb5841
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,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…
Add table
Reference in a new issue