Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/clip_ops.c
| Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | static void clip_filesel(bContext *C, wmOperator *op, const char *path) | ||||
| WM_event_add_fileselect(C, op); | WM_event_add_fileselect(C, op); | ||||
| } | } | ||||
| static void open_init(bContext *C, wmOperator *op) | static void open_init(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| PropertyPointerRNA *pprop; | PropertyPointerRNA *pprop; | ||||
| op->customdata = pprop = MEM_callocN(sizeof(PropertyPointerRNA), "OpenPropertyPointerRNA"); | op->customdata = pprop = MEM_callocN(sizeof(PropertyPointerRNA), "OpenPropertyPointerRNA"); | ||||
| uiIDContextProperty(C, &pprop->ptr, &pprop->prop); | UI_context_active_but_prop_get_templateID(C, &pprop->ptr, &pprop->prop); | ||||
| } | } | ||||
| static void open_cancel(bContext *UNUSED(C), wmOperator *op) | static void open_cancel(bContext *UNUSED(C), wmOperator *op) | ||||
| { | { | ||||
| MEM_freeN(op->customdata); | MEM_freeN(op->customdata); | ||||
| op->customdata = NULL; | op->customdata = NULL; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,413 Lines • Show Last 20 Lines | |||||