Skip to content

Commit

Permalink
Fix regression where tile-specific materials were ignored.
Browse files Browse the repository at this point in the history
Regression stemmed from commit 48bed50

The material assigned to a tile is completely ignored in master unless
this line is changed.
  • Loading branch information
Eoin-ONeill-Yokai committed Feb 11, 2024
1 parent 48bed50 commit f50e6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/2d/tile_map_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ void TileMapLayer::_rendering_update() {
rs->canvas_item_set_material(ci, mat->get_rid());
}
rs->canvas_item_set_parent(ci, get_canvas_item());
rs->canvas_item_set_use_parent_material(ci, true);
rs->canvas_item_set_use_parent_material(ci, !mat.is_valid());

Transform2D xform(0, rendering_quadrant->canvas_items_position);
rs->canvas_item_set_transform(ci, xform);
Expand Down

0 comments on commit f50e6c8

Please sign in to comment.