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

Fix: onRender being called twice when converted to a renderGroup #10490

Merged
merged 1 commit into from Apr 30, 2024

Conversation

GoodBoyDigital
Copy link
Member

@GoodBoyDigital GoodBoyDigital commented Apr 29, 2024

Description of change

When converting an item to a render group - its onRender function was being called in both its own render group (correct!)
and its parent render group (incorrect!). This resulted in onRender being called twice for render groups in some scenarios.

This PR address the issue.

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Documentation is changed or added
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

Fixes #10432

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 28c14ce:

Sandbox Source
pixi.js-sandbox Configuration

@Zyie Zyie changed the title fix onRender bug in renderGroup Fix: onRender being called twice when converted to a renderGroup Apr 30, 2024
@Zyie Zyie added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label Apr 30, 2024
@Zyie Zyie added this pull request to the merge queue Apr 30, 2024
Merged via the queue into dev with commit 1b6a8ef Apr 30, 2024
4 checks passed
@Zyie Zyie deleted the bugfix/fix-onRender-render-group branch April 30, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: [v8] double onRender of rendergroup?
3 participants