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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user