diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-11-29 17:17:29 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-12-20 14:47:36 +0300 |
commit | 96f9334857753acee58c0ff52d4de72072d99594 (patch) | |
tree | b8d0d108d6ed70009daa70a140caee9625680b2a /source/blender | |
parent | 130ebfe43c92a051ad73d7f6e74ce8f00c421750 (diff) |
Fix T71844: Outliner: show_active doesn't expand armature to show active bone
Since rB6bc6d016c5e7, outliner was not opening back up from the found
active element (but only its ID instead -- all occurances of this ID in
any collection).
Now expand from the active element as well (but only do this for the
first occurance of the corresponding ID)
Maniphest Tasks: T71844
Differential Revision: https://developer.blender.org/D6329
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c index 34bbf3a2a30..c8a6c2a87e3 100644 --- a/source/blender/editors/space_outliner/outliner_edit.c +++ b/source/blender/editors/space_outliner/outliner_edit.c @@ -1311,6 +1311,9 @@ static int outliner_show_active_exec(bContext *C, wmOperator *UNUSED(op)) outliner_show_active(so, ar, te, id); } + /* Also open back from the active_element (only done for the first found occurance of ID though). */ + outliner_show_active(so, ar, active_element, id); + /* Center view on first element found */ int size_y = BLI_rcti_size_y(&v2d->mask) + 1; int ytop = (active_element->ys + (size_y / 2)); |