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 <bastien@blender.org>2021-04-07 16:58:34 +0300
committerBastien Montagne <bastien@blender.org>2021-04-08 12:45:28 +0300
commite1ae5bd45fd0a8c0073039fa3b46835fe20f530e (patch)
treee80027093a5e4904ef799cd146d7c96850af35a5 /source/blender/makesrna
parent8b68a75872372197d8b38c516f054d07f0b7ad30 (diff)
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.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_space.c15
1 files changed, 15 insertions, 0 deletions
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)