Skip to content

Fix EmitterOp defaultEmit(), current value for custom callbacks - #7017

Merged
zekeatchan merged 2 commits into
phaserjs:masterfrom
samme:fix/7016-particle-onEmit
Feb 5, 2025
Merged

zekeatchan merged 2 commits into
phaserjs:masterfrom
samme:fix/7016-particle-onEmit

Conversation

@samme

@samme samme commented Jan 26, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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