Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_info/info_ops.c
| Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | static const EnumPropertyItem unpack_all_method_items[] = { | ||||
| "Use files in original location (create when necessary)", | "Use files in original location (create when necessary)", | ||||
| ""}, | ""}, | ||||
| {PF_WRITE_ORIGINAL, | {PF_WRITE_ORIGINAL, | ||||
| "WRITE_ORIGINAL", | "WRITE_ORIGINAL", | ||||
| 0, | 0, | ||||
| "Write files to original location (overwrite existing files)", | "Write files to original location (overwrite existing files)", | ||||
| ""}, | ""}, | ||||
| {PF_KEEP, "KEEP", 0, "Disable Auto-pack, keep all packed files", ""}, | {PF_KEEP, "KEEP", 0, "Disable Auto-pack, keep all packed files", ""}, | ||||
| {PF_REMOVE, "REMOVE", 0, "Remove Pack", ""}, | |||||
| /* {PF_ASK, "ASK", 0, "Ask for each file", ""}, */ | /* {PF_ASK, "ASK", 0, "Ask for each file", ""}, */ | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| static int unpack_all_exec(bContext *C, wmOperator *op) | static int unpack_all_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| int method = RNA_enum_get(op->ptr, "method"); | int method = RNA_enum_get(op->ptr, "method"); | ||||
| ▲ Show 20 Lines • Show All 412 Lines • Show Last 20 Lines | |||||