Backported from godot4: Correctly update TileMapLayer highlighting when disabling it

- groud
256a6713f2
This commit is contained in:
Relintai 2024-04-06 18:42:37 +02:00
parent 8648a32667
commit 4cad999f60

View File

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