Blender Git Commit Log

Git Commits -> Revision 28e703b

Revision 28e703b by Philipp Oeser (master)
November 6, 2020, 09:42 (GMT)
Fix Outliner editbone selection with 'Sync Selection'

When editbones were selected from the Outliner (and they were connected
to a parent) with the 'Sync Selection' option turned ON, they could not
get duplicated.

For duplication to work, the (connected) parent bone's tip also has to
be selected [which was not the case when selection is done from the
Outliner under above circumstances]. The reason being that
armature_duplicate_selected_exec ->
ED_armature_edit_sync_selection clears the BONE_ROOTSEL flag if the
parent bone's BONE_TIPSEL is not set.

Caused by rB71eb65328078 btw.

The correct "parent-tip-selection" would actually happen in activation
- `tree_element_active_ebone`
-- `tree_element_active_ebone__sel`
but for 'Sync Selection' this happens [also] in
- `outliner_sync_selection_from_outliner`
-- `outliner_select_sync_to_edit_bone`
which did not do the "flushing" to the parent bone's tip

Now use existing dedicated function for this.

ref. T82347

Reviewers: Zachman

Differential Revision: https://developer.blender.org/D9470

Commit Details:

Full Hash: 28e703b0a104f8c8c64dee835d9fd3e657ac86cf
Parent Commit: 02677ec
Lines Changed: +5, -14

2 Modified Paths:

/source/blender/editors/space_outliner/outliner_select.c (+1, -12) (Diff)
/source/blender/editors/space_outliner/outliner_sync.c (+4, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021