From 62f238a65e334ccecae85134da0b05ba58382ae9 Mon Sep 17 00:00:00 2001 From: Nathan Craddock Date: Sat, 7 Mar 2020 14:46:22 -0700 Subject: Outliner: Allow deleting entire selection This allows deleting both collections and objects in the outliner selection at the same time. This only works using the keyboard shortcuts (X or Delete). While this works, a more robust solution should be implemented later to allow deleting the whole selection from the context menu as well. --- source/blender/editors/space_outliner/outliner_collections.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c index f129bc9e2ea..1aee8c20cbc 100644 --- a/source/blender/editors/space_outliner/outliner_collections.c +++ b/source/blender/editors/space_outliner/outliner_collections.c @@ -346,7 +346,9 @@ static int collection_delete_exec(bContext *C, wmOperator *op) WM_msg_publish_rna_prop(mbus, &scene->id, view_layer, LayerObjects, active); } - return OPERATOR_FINISHED; + /* Temporary fix to allow deleting both collections and objects at the same time + * using the same key mapping. */ + return OPERATOR_PASS_THROUGH; } void OUTLINER_OT_collection_delete(wmOperatorType *ot) -- cgit v1.2.3