Useful for similar situations as BKE_view_layer_array_from_bases_in_mode_params without depending on the active objects mode.
Useful for similar situations as BKE_view_layer_array_from_bases_in_mode_params without depending on the active objects mode.