Skip to content

Commit f23c68c

Browse files
committed
Blitter.create only uses default frame if none provided.
1 parent e5b1b93 commit f23c68c

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: '6edc5a30-7eb3-11e7-b731-39dba554739e'
2+
build: '382f15a0-80e7-11e7-8972-194766e6f4cf'
33
};
44
module.exports = CHECKSUM;

v3/src/gameobjects/blitter/Blitter.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ var Blitter = new Class({
5151
// frame MUST be part of the Blitter texture
5252
create: function (x, y, frame, visible, index)
5353
{
54-
if (frame === undefined) { frame = this.frame; }
5554
if (visible === undefined) { visible = true; }
5655
if (index === undefined) { index = this.children.length; }
5756

58-
if (typeof frame === 'string')
57+
if (frame === undefined)
58+
{
59+
frame = this.frame;
60+
}
61+
else
5962
{
6063
frame = this.texture.get(frame);
6164
}

0 commit comments

Comments
 (0)