Page MenuHome

Fix T81818: Outliner mode column does not consider shared object data
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Oct 19 2020, 9:24 PM.

Details

Summary

For objects with shared data, it makes sense to show the mode icon for every
object sharing the same data if one of them is in edit mode.

This also disables the "extend" functionality in this case, because
being in edit mode for multiple objects with the same data isn't supported.

It might be nice to distinguish the "shared data edit modes" from the regular
buttons a bit, but we don't have great icons for that.

Depends on D9272

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Oct 19 2020, 9:24 PM
Hans Goudey (HooglyBoogly) created this revision.
Julian Eisel (Severin) requested changes to this revision.Oct 20 2020, 3:38 PM

Small requests.

source/blender/editors/space_outliner/outliner_draw.c
1938

There should be some kind of sanity check here, before just assuming this is an object.

1984

Would prefer not using bitwise operations for something that doesn't represent a bitfield.

This revision now requires changes to proceed.Oct 20 2020, 3:38 PM

I don't see any other code issues, and it works well.

Hans Goudey (HooglyBoogly) marked 2 inline comments as done.Oct 22 2020, 11:08 PM
  • Don't use bitwise operand on bool
  • Add assert to check if item type is object
This revision is now accepted and ready to land.Oct 22 2020, 11:10 PM