`select hierarchy` is treated in similar way as we're selecting single element from outliner. When `object_select_hierarchy_fn` is called for the first time, we clear select flag for all elements in `outliner_item_select`. This causes issue when `select hierarchy` is called for multiple elements. So fix is to not touch select and activate flags when `OL_ITEM_RECURSIVE` flag is set. This also fixes the hierarchy selection when "sync select" is OFF. Old Differential Revision: https://archive.blender.org/developer/D16804 Pull Request: https://projects.blender.org/blender/blender/pulls/104737