We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86c228d commit cd96324Copy full SHA for cd96324
1 file changed
src/gameobjects/BitmapData.js
@@ -804,8 +804,8 @@ Phaser.BitmapData.prototype = {
804
805
if (source instanceof Phaser.Image || source instanceof Phaser.Sprite)
806
{
807
- src = sprite.texture.baseTexture.source;
808
- var frame = sprite.texture.frame;
+ src = source.texture.baseTexture.source;
+ var frame = source.texture.frame;
809
sx = frame.x;
810
sy = frame.y;
811
sw = frame.width;
0 commit comments