diff --git a/source/blender/editors/space_outliner/outliner_draw.cc b/source/blender/editors/space_outliner/outliner_draw.cc index 699dd6d4844..e477faf6b40 100644 --- a/source/blender/editors/space_outliner/outliner_draw.cc +++ b/source/blender/editors/space_outliner/outliner_draw.cc @@ -3090,7 +3090,6 @@ static void outliner_draw_iconrow(bContext *C, TSE_ID_BASE, TSE_SOME_ID, TSE_LAYER_COLLECTION, - TSE_R_LAYER, TSE_GP_LAYER, TSE_LIBRARY_OVERRIDE_BASE, TSE_LIBRARY_OVERRIDE, @@ -3112,12 +3111,11 @@ static void outliner_draw_iconrow(bContext *C, } } - /* TSE_R_LAYER tree element always has same amount of branches, so don't draw. */ - /* Also only recurse into bone hierarchies if a direct child of the collapsed element to merge + /* Only recurse into bone hierarchies if a direct child of the collapsed element to merge * into. */ const bool is_root_level_bone = is_bone && (level == 0); in_bone_hierarchy |= is_root_level_bone; - if (!ELEM(tselem->type, TSE_R_LAYER, TSE_BONE, TSE_EBONE, TSE_POSE_CHANNEL) || + if (!ELEM(tselem->type, TSE_BONE, TSE_EBONE, TSE_POSE_CHANNEL) || in_bone_hierarchy) { outliner_draw_iconrow(C, block, @@ -3374,8 +3372,7 @@ static void outliner_draw_tree_element(bContext *C, if ((tselem->type == TSE_SOME_ID) && (te->idcode == ID_SCE)) { /* Pass. */ } - /* this tree element always has same amount of branches, so don't draw */ - else if (tselem->type != TSE_R_LAYER) { + else { int tempx = startx + offsx; GPU_blend(GPU_BLEND_ALPHA);