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

Warn, throw for particle texture frame mistakes #5841

Merged

Conversation

samme
Copy link
Contributor

@samme samme commented Sep 23, 2021

This PR

  • Adds a new feature

Closes #5838

  • In Particle#fire(), an error is thrown if the particle has no texture frame. This prevents an uncaught error later when the particle fails to render.
  • In ParticleEmitterManager#setEmitterFrames(), console warnings are printed if an invalid texture frame is given or if no texture frames were set.

@photonstorm photonstorm merged commit cca537b into phaserjs:master Sep 24, 2021
@photonstorm
Copy link
Collaborator

👍

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.

Please add useful information when a particles emitter has an invalid/null frame
2 participants