Outliner: use 'compacted' row for bones as well

In a collapsed hierarchy, some type of data are listed as one icon per
item (2.79 did this for all data),
others are 'compacted' as a single icon with a counter (also indicating
if the active item is down that collapsed hierarchy) from 2.80 on.

Not quite sure if {rB92dfc8f2673e} was meant to do this (if it was, this
was not working though because relevant code would only get executed for
object hierarchies it seems), so now this is done for bones as well.

Fixes T88413.

Maniphest Tasks: T88413

Differential Revision: https://developer.blender.org/D11404
This commit is contained in:
Philipp Oeser 2021-05-26 17:01:58 +02:00
parent 7489427e4d
commit b6a35a8153
Notes: blender-bot 2023-02-14 06:42:53 +01:00
Referenced by commit 9fc000cc6f, Fix T101946: Outliner data-block counter treats bones as collection
Referenced by issue #101946, Outliner data-block counter treats bones as collection
Referenced by issue #88413, Armature: Bone dependency tree does not highlight selected bone deep enough
1 changed files with 2 additions and 1 deletions

View File

@ -2964,7 +2964,8 @@ static void outliner_draw_iconrow(bContext *C,
te->flag &= ~(TE_ICONROW | TE_ICONROW_MERGED);
/* object hierarchy always, further constrained on level */
if ((level < 1) || ((tselem->type == TSE_SOME_ID) && (te->idcode == ID_OB))) {
if ((level < 1) || ((tselem->type == TSE_SOME_ID) && (te->idcode == ID_OB)) ||
ELEM(tselem->type, TSE_BONE, TSE_EBONE, TSE_POSE_CHANNEL)) {
/* active blocks get white circle */
if (tselem->type == TSE_SOME_ID) {
if (te->idcode == ID_OB) {