From f17a569ccfe3ceb8ce77b935f92c24aa5cd51c16 Mon Sep 17 00:00:00 2001 From: Eoin O'Neill Date: Mon, 16 Oct 2023 21:02:46 -0700 Subject: [PATCH] Fix bug where TileMap will not update material correct on assignment This seemed to be a simple case of a missing condition in an if statement with a few different flags. I'm not super familiar with the tilemap code but hopefully this is the correct place to add this check. Fixes #83474 --- scene/2d/tile_map.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index c36af5401f3..b6da4d5082b 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -407,6 +407,7 @@ void TileMapLayer::_rendering_update() { // Updates on TileMap changes. if (dirty.flags[DIRTY_FLAGS_TILE_MAP_LIGHT_MASK] || 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_REPEAT]) { for (KeyValue> &kv : rendering_quadrant_map) {