Current method only considers first selected collection in the outliner tree. This restricts user from selecting objects of multiple selected collections. To fix this, first gather all the selected collections in list with the help of `outliner_collect_selected_collections` traverse function. Then iterate through layer collections to select base/objects Pull Request: https://projects.blender.org/blender/blender/pulls/113831