Skip to content

Fix imageCollections default Tileset values #7053

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

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

Snoturky
Copy link
Contributor

  • Fixes a bug

Describe the changes below:

A recent change (a763d77) prevents the default values for Tileset's tileProperties and tileData from being set because it passes null instead of undefined for those constructor args.

This restores those default values, eliminating an Uncaught TypeError: Cannot read properties of null error here when using ImageCollections.

I rolled back my phaser version from 3.88 to 3.87 (before the above changes) and the error was gone.

@zekeatchan zekeatchan merged commit 27c7fed into phaserjs:master Mar 14, 2025
@zekeatchan
Copy link
Collaborator

Hi @Snoturky. Thanks for submitting this PR. We have merged this and pushed it to the master branch. It will be part of the next release. Do test it out and let us know if you encounter any issues.

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