Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_operators.c
| Show First 20 Lines • Show All 3,530 Lines • ▼ Show 20 Lines | #if 0 /* XXX TODO */ | ||||
| {FILTER_ID_BR, "BRUSH", 0, "Brushes", ""}, | {FILTER_ID_BR, "BRUSH", 0, "Brushes", ""}, | ||||
| #endif | #endif | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| static int previews_clear_exec(bContext *C, wmOperator *op) | static int previews_clear_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| ListBase *lb[] = {&bmain->object, &bmain->group, | ListBase *lb[] = {&bmain->object, &bmain->collection, | ||||
| &bmain->mat, &bmain->world, &bmain->lamp, &bmain->tex, &bmain->image, NULL}; | &bmain->mat, &bmain->world, &bmain->lamp, &bmain->tex, &bmain->image, NULL}; | ||||
| int i; | int i; | ||||
| const int id_filters = RNA_enum_get(op->ptr, "id_type"); | const int id_filters = RNA_enum_get(op->ptr, "id_type"); | ||||
| for (i = 0; lb[i]; i++) { | for (i = 0; lb[i]; i++) { | ||||
| ID *id = lb[i]->first; | ID *id = lb[i]->first; | ||||
| ▲ Show 20 Lines • Show All 523 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| #if 0 /* UNUSED */ | #if 0 /* UNUSED */ | ||||
| const EnumPropertyItem *RNA_action_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | const EnumPropertyItem *RNA_action_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | ||||
| { | { | ||||
| return rna_id_itemf(C, ptr, r_free, C ? (ID *)CTX_data_main(C)->action.first : NULL, true); | return rna_id_itemf(C, ptr, r_free, C ? (ID *)CTX_data_main(C)->action.first : NULL, true); | ||||
| } | } | ||||
| #endif | #endif | ||||
| const EnumPropertyItem *RNA_group_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | const EnumPropertyItem *RNA_collection_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | ||||
| { | { | ||||
| return rna_id_itemf(C, ptr, r_free, C ? (ID *)CTX_data_main(C)->group.first : NULL, false, NULL, NULL); | return rna_id_itemf(C, ptr, r_free, C ? (ID *)CTX_data_main(C)->collection.first : NULL, false, NULL, NULL); | ||||
| } | } | ||||
| const EnumPropertyItem *RNA_group_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | const EnumPropertyItem *RNA_collection_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | ||||
| { | { | ||||
| return rna_id_itemf(C, ptr, r_free, C ? (ID *)CTX_data_main(C)->group.first : NULL, true, NULL, NULL); | return rna_id_itemf(C, ptr, r_free, C ? (ID *)CTX_data_main(C)->collection.first : NULL, true, NULL, NULL); | ||||
| } | } | ||||
| const EnumPropertyItem *RNA_image_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | const EnumPropertyItem *RNA_image_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | ||||
| { | { | ||||
| return rna_id_itemf(C, ptr, r_free, C ? (ID *)CTX_data_main(C)->image.first : NULL, false, NULL, NULL); | return rna_id_itemf(C, ptr, r_free, C ? (ID *)CTX_data_main(C)->image.first : NULL, false, NULL, NULL); | ||||
| } | } | ||||
| const EnumPropertyItem *RNA_image_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | const EnumPropertyItem *RNA_image_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | ||||
| { | { | ||||
| Show All 35 Lines | |||||