diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 18f5f7f0207..2e8ae8f2cc2 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -311,6 +311,10 @@ void ED_hide_collections_menu_draw(const bContext *C, uiLayout *layout) int index = BKE_layer_collection_findindex(view_layer, lc); uiLayout *row = uiLayoutRow(layout, false); + if (lc->flag & LAYER_COLLECTION_EXCLUDE) { + continue; + } + if (lc->collection->flag & COLLECTION_RESTRICT_VIEW) { continue; }