[Bf-blender-cvs] [96f93348577] master: Fix T71844: Outliner: show_active doesn't expand armature to show active bone

Philipp Oeser noreply at git.blender.org
Fri Dec 20 12:52:04 CET 2019


Commit: 96f9334857753acee58c0ff52d4de72072d99594
Author: Philipp Oeser
Date:   Fri Nov 29 15:17:29 2019 +0100
Branches: master
https://developer.blender.org/rB96f9334857753acee58c0ff52d4de72072d99594

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

===================================================================

M	source/blender/editors/space_outliner/outliner_edit.c

===================================================================

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));



More information about the Bf-blender-cvs mailing list