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

Bug: filterArea only works if it is set before filters #10524

Closed
vitch opened this issue May 9, 2024 · 2 comments · Fixed by #10530
Closed

Bug: filterArea only works if it is set before filters #10524

vitch opened this issue May 9, 2024 · 2 comments · Fixed by #10530
Assignees
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release. 🔥 High Priority These are PRs or issues that are extremely important to address either because they are from sponsor v8

Comments

@vitch
Copy link

vitch commented May 9, 2024

Current Behavior

foo.filters = [filter];
foo.filterArea = new Rectangle(0, 0, 500, 100);

ignores the filterArea but:

foo.filterArea = new Rectangle(0, 0, 500, 100);
foo.filters = [filter];

applies it.

Expected Behavior

Either it doesn't matter when you set filterArea or at least the docs call out this requirement. One person in Discord told me the current behaviour was probably a bug

Steps to Reproduce

Please see a playground here which shows the problem

Environment

  • pixi.js version: 8.0.5
  • Browser & Version: N/A
  • OS & Version: N/A
  • Running Example: Here

Possible Solution

No response

Additional Information

No response

@bigtimebuddy bigtimebuddy added 🕷 Bug Verified that it’s actually a legit bug that exists in the current release. v8 🔥 High Priority These are PRs or issues that are extremely important to address either because they are from sponsor labels May 10, 2024
@GoodBoyDigital
Copy link
Member

yeah, that looks like a bug! thanks for sharing - will take a look!

@GoodBoyDigital
Copy link
Member

sorted :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release. 🔥 High Priority These are PRs or issues that are extremely important to address either because they are from sponsor v8
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants