Merge pull request #83475 from Eoin-ONeill-Yokai/bug/tilemap-materials

Fix bug where TileMap wouldn't update material correctly on assignment
This commit is contained in:
Rémi Verschelde 2023-10-17 16:13:12 +02:00
commit ab8fad1b24
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -407,6 +407,7 @@ void TileMapLayer::_rendering_update() {
// Updates on TileMap changes. // Updates on TileMap changes.
if (dirty.flags[DIRTY_FLAGS_TILE_MAP_LIGHT_MASK] || if (dirty.flags[DIRTY_FLAGS_TILE_MAP_LIGHT_MASK] ||
dirty.flags[DIRTY_FLAGS_TILE_MAP_USE_PARENT_MATERIAL] || dirty.flags[DIRTY_FLAGS_TILE_MAP_USE_PARENT_MATERIAL] ||
dirty.flags[DIRTY_FLAGS_TILE_MAP_MATERIAL] ||
dirty.flags[DIRTY_FLAGS_TILE_MAP_TEXTURE_FILTER] || dirty.flags[DIRTY_FLAGS_TILE_MAP_TEXTURE_FILTER] ||
dirty.flags[DIRTY_FLAGS_TILE_MAP_TEXTURE_REPEAT]) { dirty.flags[DIRTY_FLAGS_TILE_MAP_TEXTURE_REPEAT]) {
for (KeyValue<Vector2i, Ref<RenderingQuadrant>> &kv : rendering_quadrant_map) { for (KeyValue<Vector2i, Ref<RenderingQuadrant>> &kv : rendering_quadrant_map) {