Merge pull request #70294 from KoBeWi/treedulate
Add a method to get global modulate
This commit is contained in:
commit
229c82690d
3 changed files with 12 additions and 1 deletions
|
|
@ -922,7 +922,7 @@ void TileMapEditorTilesPlugin::forward_canvas_draw_over_viewport(Control *p_over
|
|||
|
||||
// Get the tile modulation.
|
||||
Color modulate = tile_data->get_modulate();
|
||||
Color self_modulate = tile_map->get_self_modulate();
|
||||
Color self_modulate = tile_map->get_modulate_in_tree() * tile_map->get_self_modulate();
|
||||
modulate *= self_modulate;
|
||||
modulate *= tile_map->get_layer_modulate(tile_map_layer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue