From 99a9401a2c11308af6e2be88bb37b038908f9f70 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sun, 18 Dec 2022 17:31:29 +0100 Subject: [PATCH] Use layer's modulate for tile previews --- editor/plugins/tiles/tile_map_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/tiles/tile_map_editor.cpp b/editor/plugins/tiles/tile_map_editor.cpp index 4131c067459..5a1f214933d 100644 --- a/editor/plugins/tiles/tile_map_editor.cpp +++ b/editor/plugins/tiles/tile_map_editor.cpp @@ -924,6 +924,7 @@ void TileMapEditorTilesPlugin::forward_canvas_draw_over_viewport(Control *p_over Color modulate = tile_data->get_modulate(); Color self_modulate = tile_map->get_self_modulate(); modulate *= self_modulate; + modulate *= tile_map->get_layer_modulate(tile_map_layer); // Draw the tile. p_overlay->draw_texture_rect_region(atlas_source->get_texture(), dest_rect, source_rect, modulate * Color(1.0, 1.0, 1.0, 0.5), transpose, tile_set->is_uv_clipping());