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:
authorJulian Eisel <julian@blender.org>2022-03-28 17:55:17 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:31:46 +0300
commit4b6ebd840b06e9ec722939278036aed65a771fbd (patch)
tree2ef5961e13d4e6e05359e3314d964b5f8cb975a9 /source/blender/editors/space_outliner
parent837f53e489ca5ff5ef5681fc946ad49ffed5ce30 (diff)
Outliner: Don't show indirectly linked Library Overrides properties
The Library Overrides display mode is meant to show overridden properties from the current file only, not library overrides in data-blocks that just were linked in. The upcoming Hierarchies view mode for Library Overrides will also display linked in data-blocks that have overrides in the source file (but not the individual overridden properties), see T95802.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/tree/tree_display_override_library.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/tree/tree_display_override_library.cc b/source/blender/editors/space_outliner/tree/tree_display_override_library.cc
index b5c0a10c834..2162c303da1 100644
--- a/source/blender/editors/space_outliner/tree/tree_display_override_library.cc
+++ b/source/blender/editors/space_outliner/tree/tree_display_override_library.cc
@@ -69,7 +69,7 @@ ListBase TreeDisplayOverrideLibrary::add_library_contents(Main &mainvar)
/* check if there's data in current id list */
for (ID *id_iter : List<ID>(lbarray[a])) {
- if (ID_IS_OVERRIDE_LIBRARY_REAL(id_iter)) {
+ if (ID_IS_OVERRIDE_LIBRARY_REAL(id_iter) && !ID_IS_LINKED(id_iter)) {
id = id_iter;
break;
}
@@ -93,7 +93,7 @@ ListBase TreeDisplayOverrideLibrary::add_library_contents(Main &mainvar)
}
for (ID *id : List<ID>(lbarray[a])) {
- if (ID_IS_OVERRIDE_LIBRARY_REAL(id)) {
+ if (ID_IS_OVERRIDE_LIBRARY_REAL(id) && !ID_IS_LINKED(id)) {
TreeElement *override_tree_element = outliner_add_element(
&space_outliner_, lb_to_expand, id, id_base_te, TSE_LIBRARY_OVERRIDE_BASE, 0);