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

Update TileMap layer draw index when it's dirty #83151

Merged

Conversation

kleonc
Copy link
Member

@kleonc kleonc commented Oct 11, 2023

Fixes #83142.

The DIRTY_FLAGS_LAYER_INDEX_IN_TILE_MAP_NODE was set for the dirty layers but it was never checked / draw index was not updated for dirty layers. Draw index was set only upon creation of a layer's canvas item.

scene/2d/tile_map.cpp Outdated Show resolved Hide resolved
@kleonc kleonc force-pushed the tile-map-layer-draw-index-update branch from df7541d to a529bf8 Compare October 11, 2023 14:56
@akien-mga akien-mga merged commit 9957f1a into godotengine:master Oct 11, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@kleonc kleonc deleted the tile-map-layer-draw-index-update branch October 11, 2023 16:35
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.

tilemap editor move_layer sorting error
3 participants