Skip to content

Commit

Permalink
Fix bug where TileMap will not update material correct on assignment
Browse files Browse the repository at this point in the history
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 godotengine#83474
  • Loading branch information
Eoin-ONeill-Yokai committed Oct 17, 2023
1 parent fd33c7b commit f17a569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/2d/tile_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vector2i, Ref<RenderingQuadrant>> &kv : rendering_quadrant_map) {
Expand Down

0 comments on commit f17a569

Please sign in to comment.