diff options
| author | Gilles Roudière <gilles.roudiere@gmail.com> | 2024-04-04 15:25:42 +0200 |
|---|---|---|
| committer | Gilles Roudière <gilles.roudiere@gmail.com> | 2024-04-04 15:25:42 +0200 |
| commit | 256a6713f22d56b4a42703919f1e4718b95de9e6 (patch) | |
| tree | f0df85aa95f51ef4a4cefda82f1f1924156b2437 | |
| parent | 7a42afbba050822a66ea5b4c620f6db1b98c49af (diff) | |
| download | redot-engine-256a6713f22d56b4a42703919f1e4718b95de9e6.tar.gz | |
Correctly update TileMapLayer highlighting when disabling it
| -rw-r--r-- | editor/plugins/tiles/tile_map_layer_editor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tile_map_layer_editor.cpp b/editor/plugins/tiles/tile_map_layer_editor.cpp index ac4708aa06..c7c1ae769e 100644 --- a/editor/plugins/tiles/tile_map_layer_editor.cpp +++ b/editor/plugins/tiles/tile_map_layer_editor.cpp @@ -3883,7 +3883,11 @@ void TileMapLayerEditor::_highlight_selected_layer_button_toggled(bool p_pressed } EditorSettings::get_singleton()->set("editors/tiles_editor/highlight_selected_layer", p_pressed); - _update_all_layers_highlighting(); + if (p_pressed) { + _update_all_layers_highlighting(); + } else { + _clear_all_layers_highlighting(); + } } void TileMapLayerEditor::_advanced_menu_button_id_pressed(int p_id) { |
