From c3cae03856bac54f8cc46fa21513c0b6accc1285 Mon Sep 17 00:00:00 2001 From: tariqsulley Date: Fri, 25 Jul 2025 16:29:29 +1000 Subject: [PATCH] Fix #140548: Shift to extend fails in the "Hide Other Collection" menu Use the invoke operator context so the event is passed to the operator. Ref !141817 --- source/blender/editors/object/object_edit.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/object/object_edit.cc b/source/blender/editors/object/object_edit.cc index 7da3136009d..881d2855a94 100644 --- a/source/blender/editors/object/object_edit.cc +++ b/source/blender/editors/object/object_edit.cc @@ -436,7 +436,8 @@ void collection_hide_menu_draw(const bContext *C, uiLayout *layout) ViewLayer *view_layer = CTX_data_view_layer(C); LayerCollection *lc_scene = static_cast(view_layer->layer_collections.first); - uiLayoutSetOperatorContext(layout, WM_OP_EXEC_REGION_WIN); + /* Use the "invoke" operator context so the "Shift" modifier is used to extend. */ + uiLayoutSetOperatorContext(layout, WM_OP_INVOKE_REGION_WIN); LISTBASE_FOREACH (LayerCollection *, lc, &lc_scene->layer_collections) { int index = BKE_layer_collection_findindex(view_layer, lc);