Page MenuHome

Outliner: Use general update methods for syncing
Needs ReviewPublic

Authored by Nathan Craddock (Zachman) on Fri, Sep 20, 11:52 PM.

Details

Summary

As discussed in T69212: Outliner Sync Selection: Use general update method, after selection changes, 3 function calls need to be made to tag despgraph, notifiers, and outliner for syncing. This adds two functions, ED_object_select_update and ED_sequencer_select_update to simplify operator code.

This will also be extended to edit bones and pose bones.

Diff Detail

Repository
rB Blender
Branch
temp-outliner-sync-general-update (branched from master)
Build Status
Buildable 5053
Build 5053: arc lint + arc unit

Event Timeline

source/blender/editors/object/object_add.c
2672

I'm not sure if it was safe to remove the ID_RECALC_SELECT from the first depsgraph tag, but it was redundant in ED_object_select_update

source/blender/editors/space_view3d/view3d_select.c
1290

The file view3d_select.c did not have the 3 function calls grouped together, so I'm not sure how this should best be approached. I replaced the synced selection tagging with ED_object_select_update