Skip to content

Commit

Permalink
Merge pull request #4089 from Cirras/texture-add-base-texture-fix
Browse files Browse the repository at this point in the history
Make Texture.add() firstFrame check more explicit (Fix issue #4088)
  • Loading branch information
photonstorm committed Apr 8, 2019
2 parents 8cb466b + 0d7d828 commit 56babb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textures/Texture.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 56babb5

Please sign in to comment.