[Bf-blender-cvs] [ec6e490bb8d] blender2.8: Add override icon to such data-blocks in OUtliner.

Bastien Montagne noreply at git.blender.org
Mon Dec 18 12:02:54 CET 2017


Commit: ec6e490bb8d3d0e716b245bd2da7d1a7ed847e7b
Author: Bastien Montagne
Date:   Mon Dec 18 12:02:23 2017 +0100
Branches: blender2.8
https://developer.blender.org/rBec6e490bb8d3d0e716b245bd2da7d1a7ed847e7b

Add override icon to such data-blocks in OUtliner.

===================================================================

M	source/blender/editors/space_outliner/outliner_draw.c

===================================================================

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 */



More information about the Bf-blender-cvs mailing list