From 3f36cd3f33e52d53d82a3a221e2a576cf26390a5 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 25 Jul 2016 17:37:34 +0200 Subject: Changed most of ID_IS_LINKED_foo checks as needed. Basically, due to new 'virtual' libraries & 'path' assets, we consider those 'virtualmy linked' IDs as: * Local for editing purpose (i.e. they are editable). * Linked for datablock management purposes (i.e. they can be made local, etc.). Note: all this is more like a quick hack to test 'file-based' asset repositories (like cloud) in comming weeks. I really do not think we should use that in the end, an full-featured 'overriding ID' system (as proposed in replacement of proxies for 2.8) would be much saner imho. --- source/blender/editors/space_outliner/outliner_draw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '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 5173b18dc9b..b357e742d78 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -1568,7 +1568,7 @@ static void outliner_draw_tree_element( else offsx += 2 * ufac; - if (tselem->type == 0 && ID_IS_LINKED_DATABLOCK(tselem->id)) { + if (tselem->type == 0 && ID_IS_LINKED(tselem->id)) { glPixelTransferf(GL_ALPHA_SCALE, 0.5f); if (tselem->id->tag & LIB_TAG_MISSING) { UI_icon_draw((float)startx + offsx, (float)*starty + 2 * ufac, ICON_LIBRARY_DATA_BROKEN); @@ -1579,8 +1579,6 @@ static void outliner_draw_tree_element( else { UI_icon_draw((float)startx + offsx, (float)*starty + 2 * ufac, ICON_LIBRARY_DATA_DIRECT); } - /* TODO use proper icons or other UI feedback, for sake of simplicity for now using basic - * color code to show assets and their state. */ if (tselem->id->uuid) { offsx += UI_UNIT_X; UI_icon_draw((float)startx + offsx - 0.5f * ufac, (float)*starty + 1.5f * ufac, ICON_SOLO_ON); -- cgit v1.2.3