From aa64fd69e733e49317101ea60299f2179830ae95 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Sun, 27 Dec 2020 22:15:20 +0100 Subject: UI: List library overrides in the Outliner Having a centeral place to find a list of all library overrides should be useful for managing production scenes where library overrides are used a lot. This change adds the individually overridden properties of a data-block under the data-block itself. Just how we show modifiers, constraints or pose channels there. This way we can also expose library override operations/options better in future. There's also a filter option for the library overrides now, so they can be hidden. It is only available in the View Layer display mode though, like the other filter options. One internal change this has to do is adding more informative return values to undo pushes and the library override functions called by it. That way we can send a notifier when library overrides change for the Outliner to know when to rebuild the tree. Differential Revision: https://developer.blender.org/D7631 Reviewed by: Andy Goralczyk, Bastien Montagne, William Reynish --- source/blender/editors/space_outliner/outliner_draw.c | 4 ++++ 1 file changed, 4 insertions(+) (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 9223da136e1..8c6e4329577 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -2180,6 +2180,10 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te) data.icon = ICON_MODIFIER_DATA; data.drag_id = tselem->id; break; + case TSE_LIBRARY_OVERRIDE_BASE: + case TSE_LIBRARY_OVERRIDE: + data.icon = ICON_LIBRARY_DATA_OVERRIDE; + break; case TSE_LINKED_OB: data.icon = ICON_OBJECT_DATA; break; -- cgit v1.2.3