mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Merge pull request #4351 from Cirras/spritesheet-from-atlas-base-texture
Add __BASE texture entry in SpriteSheetFromAtlas parser
This commit is contained in:
commit
36b40db7f0
1 changed files with 3 additions and 3 deletions
|
@ -40,9 +40,9 @@ var SpriteSheetFromAtlas = function (texture, frame, config)
|
||||||
throw new Error('TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.');
|
throw new Error('TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add in a __BASE entry (for the entire atlas)
|
// Add in a __BASE entry (for the entire atlas frame)
|
||||||
// var source = texture.source[sourceIndex];
|
var source = texture.source[0];
|
||||||
// texture.add('__BASE', sourceIndex, 0, 0, source.width, source.height);
|
texture.add('__BASE', 0, 0, 0, source.width, source.height);
|
||||||
|
|
||||||
var startFrame = GetFastValue(config, 'startFrame', 0);
|
var startFrame = GetFastValue(config, 'startFrame', 0);
|
||||||
var endFrame = GetFastValue(config, 'endFrame', -1);
|
var endFrame = GetFastValue(config, 'endFrame', -1);
|
||||||
|
|
Loading…
Reference in a new issue