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 TileMap::get_used_rect incorrectly handling empty layers #81423

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

kleonc
Copy link
Member

@kleonc kleonc commented Sep 7, 2023

TileMap::get_used_rect's logic got messed up when splitted in #78328 (rects for empty layers i.e. Rect2i(0, 0, 0, 0) were merged into the result).

Fixes #81417.

@kleonc kleonc added this to the 4.2 milestone Sep 7, 2023
@kleonc kleonc requested a review from groud September 7, 2023 16:20
@kleonc kleonc requested a review from a team as a code owner September 7, 2023 16:20
@groud
Copy link
Member

groud commented Sep 11, 2023

Thanks, the code looks good! It only needs a rebase.

@akien-mga akien-mga merged commit 64fce49 into godotengine:master Sep 12, 2023
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@kleonc kleonc deleted the tile-map-get-used-rect-fix branch September 13, 2023 10:46
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.

[Godot4.2dev2] When tileMap has multiple layers, the data returned by calling get_used_rect() is problematic.
3 participants