diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-04-25 05:18:39 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-04-25 05:18:39 +0300 |
commit | 5d14463e1aee44a99d37f6d94804c9e8407ee4fd (patch) | |
tree | fb50bf63683289477a3204d131725eeb2872647a /source/blender/editors/space_outliner/outliner_collections.c | |
parent | a8441fc90086bf21dc50dc9dcd6085e0a0674921 (diff) |
Fix: Selection syncing for outliner operators
A few outliner operators that modify selection were not tagging for a
selection sync which led to selection inconsistencies. This adds syncing
for the following operators:
* Duplicating and deleting collections
* Selecting/deselecting collection contents
* Drag and drop
* Object select, deselect, delete, and delete hierarchy
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_collections.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_collections.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c index 4b6241d45ee..c77ee67b859 100644 --- a/source/blender/editors/space_outliner/outliner_collections.c +++ b/source/blender/editors/space_outliner/outliner_collections.c @@ -377,6 +377,8 @@ static int collection_delete_exec(bContext *C, wmOperator *op) WM_msg_publish_rna_prop(mbus, &scene->id, view_layer, LayerObjects, active); } + ED_outliner_select_sync_from_object_tag(C); + return OPERATOR_FINISHED; } @@ -458,6 +460,7 @@ static int collection_objects_select_exec(bContext *C, wmOperator *op) Scene *scene = CTX_data_scene(C); DEG_id_tag_update(&scene->id, ID_RECALC_SELECT); WM_main_add_notifier(NC_SCENE | ND_OB_SELECT, scene); + ED_outliner_select_sync_from_object_tag(C); return OPERATOR_FINISHED; } @@ -580,6 +583,7 @@ static int collection_duplicate_exec(bContext *C, wmOperator *op) DEG_relations_tag_update(bmain); WM_main_add_notifier(NC_SCENE | ND_LAYER, CTX_data_scene(C)); + ED_outliner_select_sync_from_object_tag(C); return OPERATOR_FINISHED; } |