Skip to content

Commit 256a671

Browse files
committed
Correctly update TileMapLayer highlighting when disabling it
1 parent 7a42afb commit 256a671

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

editor/plugins/tiles/tile_map_layer_editor.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3883,7 +3883,11 @@ void TileMapLayerEditor::_highlight_selected_layer_button_toggled(bool p_pressed
38833883
}
38843884

38853885
EditorSettings::get_singleton()->set("editors/tiles_editor/highlight_selected_layer", p_pressed);
3886-
_update_all_layers_highlighting();
3886+
if (p_pressed) {
3887+
_update_all_layers_highlighting();
3888+
} else {
3889+
_clear_all_layers_highlighting();
3890+
}
38873891
}
38883892

38893893
void TileMapLayerEditor::_advanced_menu_button_id_pressed(int p_id) {

0 commit comments

Comments
 (0)