diff options
author | Julian Eisel <julian@blender.org> | 2020-06-30 19:12:25 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-06-30 19:26:21 +0300 |
commit | 8262e37d228910be6f285378244e95b825408314 (patch) | |
tree | 940abeb96f25f2585080c2f974369e628559e396 /source/blender | |
parent | 9693163e2f9a1ea4a0302809757d630fec387423 (diff) |
Outliner/UI: Show library state icons for data-blocks in "Data API" mode
Previously it was not possible to tell appart a linked data-block from its
override copy. In fact you couldn't tell appart any data-blocks with the same
name (which is possible with linking).
Now we show the library state icon as we do for data-blocks in other display
modes.
Old/new comparison (note the overriden "GEO-head"):
{F8608835} {F8608836}
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 2dd0d9477de..6ea1d74112d 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -3108,7 +3108,8 @@ static void outliner_draw_tree_element(bContext *C, offsx += 2 * ufac; } - if (ELEM(tselem->type, 0, TSE_LAYER_COLLECTION)) { + if (ELEM(tselem->type, 0, TSE_LAYER_COLLECTION) || + ((tselem->type == TSE_RNA_STRUCT) && RNA_struct_is_ID(te->rnaptr.type))) { const BIFIconID lib_icon = UI_library_icon_get(tselem->id); if (lib_icon != ICON_NONE) { UI_icon_draw_alpha( |