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 crash when using tile atlas merge with recreated alt tile #77382

Merged
merged 1 commit into from May 26, 2023

Conversation

rakkarage
Copy link
Contributor

If u delete an alt tile and re-add it it gets a new id.
Merging calls create_alternative_tile for each tile that recycles old unused ids / packs ids.
Was crashing when trying to get data from an alt tile that did not exist anymore.
Closes: #77381

@akien-mga
Copy link
Member

Please amend the commit message to make it a meaningful description of what it does (e.g. the same as the PR title which seems fine).

@akien-mga akien-mga merged commit 95d745f into godotengine:master May 26, 2023
13 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov
Copy link
Contributor

Cherry-picked for 4.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when using tile atlas merge with recreated alt tile
4 participants