diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-19 16:26:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-19 16:26:50 +0100 |
commit | 5784c9801e0e91928a8128f729daf453785a2fed (patch) | |
tree | 633be754e2975ea9b3abbea4199c553d75c09e37 | |
parent | 845e655cba39ed451aa07161ff8ae569e22b2374 (diff) | |
parent | 99a9401a2c11308af6e2be88bb37b038908f9f70 (diff) |
Merge pull request #70264 from KoBeWi/layedulate
Use layer's modulate for tile previews
-rw-r--r-- | editor/plugins/tiles/tile_map_editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/tiles/tile_map_editor.cpp b/editor/plugins/tiles/tile_map_editor.cpp index 4131c06745..5a1f214933 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()); |