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:
Richard Davey 2019-04-08 12:03:17 +01:00 committed by GitHub
commit 56babb5841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}