Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert PIXI.DisplayObjectContainer.getBounds call to updateTransform #2627

Closed
wants to merge 1 commit into from
Closed

Conversation

st0nerhat
Copy link
Contributor

This PR changes

  • Nothing, it's a bug fix

Describe the changes below:

This reverts commit 4102378.

Calling updateTransform inside of DisplayObjectContainer.getBounds() has the following two
detrimental side effects:

  • getLocalBounds() actually returns world bounds.
  • PIXI.identityMatrix becomes corrupted because worldTransform is updated destructively in updateTransform().

There is probably a way to rewrite getLocalBounds() to work without reverting this, but I don't see an obvious route.

…art of `getBounds` to help avoid the bounds being out of date."

This reverts commit 4102378.

Calling updateTransform here breaks the behavior of getLocalBounds()
@photonstorm
Copy link
Collaborator

Closing, as this is covered by #2639

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.

2 participants