Skip to content

Commit

Permalink
Correctly update TileMapLayer highlighting when disabling it
Browse files Browse the repository at this point in the history
  • Loading branch information
groud committed Apr 4, 2024
1 parent 7a42afb commit 256a671
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/plugins/tiles/tile_map_layer_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 256a671

Please sign in to comment.