From 4cad999f6065ed50bd365fb0f450109074fc7b36 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 6 Apr 2024 18:42:37 +0200 Subject: [PATCH] Backported from godot4: Correctly update TileMapLayer highlighting when disabling it - groud https://github.com/godotengine/godot/commit/256a6713f22d56b4a42703919f1e4718b95de9e6 --- .../editor/layered_tile_map_layer_editor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/layered_tile_map/editor/layered_tile_map_layer_editor.cpp b/modules/layered_tile_map/editor/layered_tile_map_layer_editor.cpp index 2014654ee..d39013cdf 100644 --- a/modules/layered_tile_map/editor/layered_tile_map_layer_editor.cpp +++ b/modules/layered_tile_map/editor/layered_tile_map_layer_editor.cpp @@ -4042,7 +4042,12 @@ void LayeredTileMapLayerEditor::_highlight_selected_layer_button_toggled(bool p_ } EditorSettings::get_singleton()->set("editors/layered_tiles_editor/highlight_selected_layer", p_pressed); - _update_all_layers_highlighting(); + + if (p_pressed) { + _update_all_layers_highlighting(); + } else { + _clear_all_layers_highlighting(); + } } void LayeredTileMapLayerEditor::_advanced_menu_button_id_pressed(int p_id) {