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 EmitterOp defaultEmit(), current value for custom callbacks #7017

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

samme
Copy link
Contributor

@samme samme commented Jan 26, 2025

This PR

  • Fixes a bug (2)
  1. EmitterOp defaultEmit() always returned undefined, causing particle problems if you gave only an onUpdate callback (Phaser 3.87 doc issue deriving on unexpected visual @ emitters under CANVAS rendering #7016).
  2. If you configured an EmitterOp with onEmit or onUpdate, the op's current value would be incorrect (an object) until the first emit.

@zekeatchan zekeatchan merged commit 8e51a93 into phaserjs:master Feb 5, 2025
@zekeatchan zekeatchan self-assigned this Feb 5, 2025
@zekeatchan
Copy link
Collaborator

Hi @samme. Thanks for submitting this PR. We have merged and pushed it to the master branch. It will be part of the next release.

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