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>2016-07-25 18:37:34 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-07-25 18:37:34 +0300
commit3f36cd3f33e52d53d82a3a221e2a576cf26390a5 (patch)
treefef4d83d0e5addb59c8389adf125281a4c7e35f8 /source/blender/editors/space_outliner/outliner_draw.c
parent521222b545aa5c88c8ac6ba1b4086c329df4b702 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c4
1 files changed, 1 insertions, 3 deletions
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);