Skip to content

Commit 20fabd2

Browse files
authored
Merge pull request phaserjs#2878 from stoneman1/master
Fixes issue phaserjs#2860
2 parents 8d60842 + 75e814d commit 20fabd2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

v2-community/src/animation/AnimationParser.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Phaser.AnimationParser = {
2828
*/
2929
spriteSheet: function (game, key, frameWidth, frameHeight, frameMax, margin, spacing, skipFrames) {
3030

31+
if (frameMax === undefined) { frameMax = -1; }
32+
if (margin === undefined) { margin = 0; }
33+
if (spacing === undefined) { spacing = 0; }
34+
3135
var img = key;
3236

3337
if (typeof key === 'string')

0 commit comments

Comments
 (0)