Merge pull request #88190 from Eoin-ONeill-Yokai/bugfix/materials-tilemap2d

Fix regression where a tile's custom material was ignored
This commit is contained in:
Rémi Verschelde 2024-02-13 11:25:06 +01:00
commit 8b72165b5f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -325,7 +325,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);