Page MenuHome

LibOverride: Initial dedicated view in the Outliner.
ClosedPublic

Authored by Bastien Montagne (mont29) on Mar 30 2021, 10:01 AM.

Details

Summary

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.


NOTE: there are other tweaks and fixes in the outliner view in this patch (most notable one being the 'compact icon row' being extended to more tree item types). Those will be committed separately.

Diff Detail

Repository
rB Blender
Branch
override-outliner-view
Build Status
Buildable 13813
Build 13813: arc lint + arc unit

Event Timeline

Bastien Montagne (mont29) requested review of this revision.Mar 30 2021, 10:01 AM
Bastien Montagne (mont29) created this revision.

Just a few minor comments, seems pretty much fine.

source/blender/editors/space_outliner/outliner_draw.c
1788–1789

Meh, we keep repeating this same check, should be moved into a function. But I can do that after this patch is in.

1854

Why call this parent_has_warnings? This doesn't seem to check the parent. Maybe any_has_warnings or any_item_has_warnings? And maybe has_warnings should become item_has_warnings, to be clear that this only relates to the current item.

3009–3022

I asked Nathan why only few types used the icon merging before. I don't see a reason myself.

source/blender/makesrna/intern/rna_space.c
3406

Description could be improved. "Display data-blocks with library overrides and list their overridden values"?

3602

Instead of "by Blender" I'd say "automatically".
Maybe we could also mention an example of when this is done?

So my proposal:
"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 data)"

Nathan Craddock (natecraddock) added inline comments.
source/blender/editors/space_outliner/outliner_draw.c
3009–3022

@Julian Eisel (Severin) I don't know either. Those types were always there from what I recall.

Bastien Montagne (mont29) marked 3 inline comments as done.

Updated from review, thanks.

source/blender/editors/space_outliner/outliner_draw.c
1788–1789

Yes, would rather not add even more unrelated cleanup/refactor in this patch, it already has too many. ;)

This revision is now accepted and ready to land.Apr 7 2021, 1:03 PM

Committed as listed above.