Skip to content

Conversation

jjcapellan
Copy link
Contributor

Please do not update the README or Change Log, we will do this when we merge your PR.

This PR (delete as applicable)

  • Fixes a bug

Describe the changes below:
The range of the loop in Texture#getFrameBounds has been adjusted to not include the last frame (__BASE), as it caused an incorrect calculation of the bounds (allways {x:0, y:0, w: textureWidth, h: textureHight}).
You can see the problem in this code: https://phaser.io/sandbox/tqnwvEda . If the texture comes from an atlas frame, the framebounds of the texture should be the same as the bounds of the atlas frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant