Merge pull request #90204 from groud/fix_highlighting_update_on_disable

Correctly update TileMapLayer highlighting when disabling it
This commit is contained in:
Rémi Verschelde 2024-04-04 17:09:23 +02:00
commit 4d7c87b7be
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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); 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) { void TileMapLayerEditor::_advanced_menu_button_id_pressed(int p_id) {