Page MenuHome

Outliner: Add icon column to toggle if library overrides are editable
ClosedPublic

Authored by Julian Eisel (Severin) on Apr 14 2022, 6:17 PM.

Details

Summary

Adds a column to the right in the Library Overrides Hierarchies view mode to toggle editability of library overrides.

Note that making a library override non-editable currently involves clearing all overridden properties. This is an arguable design choice, we should probably at least warn the user before doing this.

Part of T95802.

Diff Detail

Repository
rB Blender
Branch
temp-outliner-library-override-hierarchy
Build Status
Buildable 21644
Build 21644: arc lint + arc unit

Event Timeline

Julian Eisel (Severin) requested review of this revision.Apr 14 2022, 6:17 PM
Julian Eisel (Severin) created this revision.

I think the CPP_ARG_DEFAULT macros have nothing to do in this patch?

Also, the whole set of changes to context and button comparison will be committed separately I assume?

Otherwise LGTM.

source/blender/editors/space_outliner/outliner_draw.cc
1851

Wonder though, are we sure this cannot lead to accessing freed memory?

source/blender/editors/space_outliner/outliner_utils.cc
327–332

could be a sub-switch?

source/blender/editors/util/ed_util_ops.cc
333

"Set if this library override data-block can be edited or not"

This revision is now accepted and ready to land.Apr 20 2022, 4:00 PM

I think the CPP_ARG_DEFAULT macros have nothing to do in this patch?

It's used here, but I submitted it separately: D14654

Also, the whole set of changes to context and button comparison will be committed separately I assume?

Yeah makes sense.

source/blender/editors/space_outliner/outliner_draw.cc
1851

Just tested again to confirm, I couldn't cause any issues with it over undo/redo. But should there be an issue, we're more likely to find it because of the dereferences, than if we'd just compare pointers.