Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2017-12-18 14:02:23 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-12-18 14:02:23 +0300
commitec6e490bb8d3d0e716b245bd2da7d1a7ed847e7b (patch)
tree1337fbedb29e04b219b772136b2ae8c3efcd0e5f /source/blender/editors/space_outliner
parent4c9f303ebad6c28d6bd6ce013011d85b11a932d0 (diff)
Add override icon to such data-blocks in OUtliner.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c5
1 files changed, 5 insertions, 0 deletions
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 */