Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_edit.c
| Context not available. | |||||
| /* Hide selected or unselected objects. */ | /* Hide selected or unselected objects. */ | ||||
| for (Base *base = view_layer->object_bases.first; base; base = base->next) { | for (Base *base = view_layer->object_bases.first; base; base = base->next) { | ||||
| if (!(base->flag & BASE_VISIBLE_DEPSGRAPH)) { | if (!(base->flag & BASE_VISIBLE)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| Context not available. | |||||
| DEG_id_tag_update(&scene->id, ID_RECALC_BASE_FLAGS); | DEG_id_tag_update(&scene->id, ID_RECALC_BASE_FLAGS); | ||||
| if (v3d->flag & V3D_LOCAL_COLLECTIONS) { | if (v3d->flag & V3D_LOCAL_COLLECTIONS) { | ||||
| if (lc->runtime_flag & LAYER_COLLECTION_RESTRICT_VIEWPORT) { | if ((lc->runtime_flag & LAYER_COLLECTION_VISIBLE) == 0) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| if (toggle) { | if (toggle) { | ||||
| Context not available. | |||||
| BKE_layer_collection_local_sync(view_layer, v3d); | BKE_layer_collection_local_sync(view_layer, v3d); | ||||
| } | } | ||||
| else { | else { | ||||
| BKE_layer_collection_isolate_local(view_layer, v3d, lc, extend); | BKE_layer_collection_local_isolate(view_layer, v3d, lc, extend); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| BKE_layer_collection_isolate_global(scene, view_layer, lc, extend); | BKE_layer_collection_isolate(scene, view_layer, lc, extend); | ||||
| } | } | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); | WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); | ||||
| Context not available. | |||||