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

return old behaviour of getLocalBounds for cacheAsBitmap and generateTexture #6477

Merged
merged 10 commits into from
Mar 21, 2020

Conversation

ivanpopelyshev
Copy link
Collaborator

@ivanpopelyshev ivanpopelyshev commented Mar 16, 2020

#6365 broke cacheAsBitmap because our mixin relies on different behaviour of getLocalBounds()

The thing is, old behaviour of getLocalBounds() can be called with getLocalBounds(undefined, true)

I wanted to make it right - work with temp parent like in renderer, and restore transform after the fact just to be sure.

But right now its easier to just patch it back.

broken: https://pixijs.io/examples/#/demos-basic/cacheAsBitmap.js

WIP: https://pixijs.io/examples/?v=dev-cacheAsBitmap#/demos-basic/cacheAsBitmap.js

@codecov-io
Copy link

codecov-io commented Mar 16, 2020

Codecov Report

Merging #6477 into dev will not change coverage by %.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #6477   +/-   ##
=======================================
  Coverage   80.14%   80.14%           
=======================================
  Files          57       57           
  Lines        2825     2825           
=======================================
  Hits         2264     2264           
  Misses        561      561           
Impacted Files Coverage Δ
packages/mixin-cache-as-bitmap/src/index.js 80.23% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d66f791...2ce998d. Read the comment docs.

@ivanpopelyshev
Copy link
Collaborator Author

Work in progress, I'm fixing stuff

@ivanpopelyshev ivanpopelyshev changed the title CacheAsBitmap should not rely on getLocalBounds return old behaviour of getLocalBounds for cacheAsBitmap and generateTexture Mar 18, 2020
Copy link
Member

@cursedcoder cursedcoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bigtimebuddy bigtimebuddy merged commit 9e631c4 into dev Mar 21, 2020
@bigtimebuddy bigtimebuddy deleted the dev-cacheAsBitmap branch March 21, 2020 15:35
@bigtimebuddy
Copy link
Member

Can you port this to v4 too?

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.

None yet

4 participants