Fix #89479: Unable to select hierarchies of multiple objects from outliner #104737

Merged
Pratik Borhade merged 11 commits from PratikPB2123/blender:T89479-select-multi-hierarchies into main 2023-08-17 13:23:52 +02:00

11 Commits

Author SHA1 Message Date
Pratik Borhade 6202384d9a Merge branch 'main' into T89479-select-multi-hierarchies
buildbot/vexp-code-patch-coordinator Build done. Details
2023-08-17 08:50:46 +05:30
Pratik Borhade 9b272a44e2 Revert changes in do_outliner_object_select_recursive
buildbot/vexp-code-patch-coordinator Build done. Details
- Revert b84e0c72d2
- Handle heirarchy selection in do_outliner_item_activate_tree_element
  when sync-selection is disabled
2023-06-07 14:59:43 +05:30
Pratik Borhade 8c6e5519f8 Merge branch 'main' into T89479-select-multi-hierarchies 2023-06-07 14:36:26 +05:30
Pratik Borhade 3e3d5c18fb Fix: Pass correct sync_select value 2023-04-07 14:59:56 +05:30
Pratik Borhade dd840319ce Merge branch 'main' into T89479-select-multi-hierarchies 2023-04-01 16:42:13 +05:30
Pratik Borhade b84e0c72d2 Fix hierarchy selection when sync-selection is disabled 2023-04-01 16:38:53 +05:30
Pratik Borhade 79c38ac4a4 Merge branch 'main' into T89479-select-multi-hierarchies 2023-03-23 16:27:16 +05:30
Pratik Borhade e0eea437d0 Small tweaks
- Comment added
- Added one if condition to not clear the both active and select flag
  (this was the mistake in earlier code)
2023-03-23 07:21:16 +05:30
Pratik Borhade 623ac68cf0 Avoid changing active tree element
`ED_object_base_activate` is changing the active base `view_layer->basact`.
This is exepcted for left click and ctrl click selection but we don't
expect to change the active element when selecting hierarchies. So to fix
this add extra `if() check`.
2023-03-21 07:35:16 +05:30
Pratik Borhade bc478ddb9b Merge branch 'main' into T89479-select-multi-hierarchies 2023-03-12 11:49:03 +05:30
Pratik Borhade 8c9308f87c Fix #89479: Unable to select hierarchies of multiple objects from outliner
`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.

Old Differential Revision: https://archive.blender.org/developer/D16804
2023-02-14 17:18:42 +05:30