Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Craddock <nzcraddock@gmail.com>2020-03-08 00:46:22 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-03-08 00:46:22 +0300
commit62f238a65e334ccecae85134da0b05ba58382ae9 (patch)
tree983f3f5b4883f2f0ad7597347c180a2287c9d34a /source/blender/editors/space_outliner/outliner_collections.c
parent5539b68009e6936238c060808b874e6a6e86a073 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_collections.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_collections.c4
1 files changed, 3 insertions, 1 deletions
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)