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

emitter life issue fixed #133

Merged
merged 1 commit into from
May 1, 2020

Conversation

serglider
Copy link
Contributor

Fixed issue: Despite the docs saying that the emitters will emit infinitely if emitterLifetime prop is set to "-1", they will do so if emitterLifetime prop is set to "0" as well.

This also handles the rare case that during emitting this._emitterLife can be calculated to be "0". In which case the emitting can unintentionally become infinite.

@andrewstart
Copy link
Collaborator

Hmm, after waking up fully, it appears my sleepy brain lied about there being a rare edge case here. Thanks for the fix!

@andrewstart andrewstart merged commit b4f4b07 into pixijs-userland:master May 1, 2020
@serglider serglider deleted the emitter-life-fix branch May 4, 2020 06:19
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