From ec6e490bb8d3d0e716b245bd2da7d1a7ed847e7b Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 18 Dec 2017 12:02:23 +0100 Subject: [PATCH] Add override icon to such data-blocks in OUtliner. --- source/blender/editors/space_outliner/outliner_draw.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index bc40067c2a8..a3912383369 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -1453,6 +1453,11 @@ static void outliner_draw_tree_element( } offsx += UI_UNIT_X + 2 * ufac; } + else if (tselem->type == 0 && ID_IS_STATIC_OVERRIDE(tselem->id)) { + UI_icon_draw_alpha((float)startx + offsx + 2 * ufac, (float)*starty + 2 * ufac, ICON_LIBRARY_DATA_OVERRIDE, + alpha_fac); + offsx += UI_UNIT_X + 2 * ufac; + } glDisable(GL_BLEND); /* name */