Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_collection.c
| Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | static int collection_objects_remove_all_exec(bContext *C, wmOperator *UNUSED(op)) | ||||
| WM_event_add_notifier(C, NC_GROUP | NA_EDITED, NULL); | WM_event_add_notifier(C, NC_GROUP | NA_EDITED, NULL); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void COLLECTION_OT_objects_remove_all(wmOperatorType *ot) | void COLLECTION_OT_objects_remove_all(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Remove from All Unlinked Collections"; | ot->name = "Remove from All Collections"; | ||||
| ot->description = "Remove selected objects from all collections not used in a scene"; | ot->description = "Remove selected objects from all collections"; | ||||
| ot->idname = "COLLECTION_OT_objects_remove_all"; | ot->idname = "COLLECTION_OT_objects_remove_all"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = collection_objects_remove_all_exec; | ot->exec = collection_objects_remove_all_exec; | ||||
| ot->poll = ED_operator_objectmode; | ot->poll = ED_operator_objectmode; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| ▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines | |||||