From e1ae5bd45fd0a8c0073039fa3b46835fe20f530e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 7 Apr 2021 15:58:34 +0200 Subject: LibOverride: Add a dedicated view in the Outliner. This is a minimal, information-only view currently, listing by default all the override data-blocks, with their user-edited override properties. System-generated overrides (like the overrides of pointers to other override data-blocks) can be shown through a filter option. Finally, potential info or warning messages from (auto-)resync propcess are also shown, as an icon + tooltip next to the affected items. Part of D10855. --- source/blender/makesrna/intern/rna_space.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index df10ef41057..361c0e82b3b 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -3399,6 +3399,11 @@ static void rna_def_space_outliner(BlenderRNA *brna) ICON_RNA, "Data API", "Display low level Blender data and its properties"}, + {SO_OVERRIDES_LIBRARY, + "LIBRARY_OVERRIDES", + ICON_LIBRARY_DATA_OVERRIDE, + "Library Overrides", + "Display data-blocks with library overrides and list their overridden properties"}, {SO_ID_ORPHANS, "ORPHAN_DATA", ICON_ORPHAN_DATA, @@ -3588,6 +3593,16 @@ static void rna_def_space_outliner(BlenderRNA *brna) "Show Library Overrides", "For libraries with overrides created, show the overridden values"); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL); + + prop = RNA_def_property(srna, "use_filter_lib_override_system", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "filter", SO_FILTER_SHOW_SYSTEM_OVERRIDES); + RNA_def_property_ui_text( + prop, + "Show System Overrides", + "For libraries with overrides created, show the overridden values that are " + "defined/controlled automatically (e.g. to make users of an overridden data-block point to " + "the override data, not the original linked data)"); + RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL); } static void rna_def_space_view3d_shading(BlenderRNA *brna) -- cgit v1.2.3