Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sound/sound_ops.c
| Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | static void sound_open_cancel(bContext *UNUSED(C), wmOperator *op) | ||||
| op->customdata = NULL; | op->customdata = NULL; | ||||
| } | } | ||||
| static void sound_open_init(bContext *C, wmOperator *op) | static void sound_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); | ||||
| } | } | ||||
| #ifdef WITH_AUDASPACE | #ifdef WITH_AUDASPACE | ||||
| static int sound_open_exec(bContext *C, wmOperator *op) | static int sound_open_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| char path[FILE_MAX]; | char path[FILE_MAX]; | ||||
| bSound *sound; | bSound *sound; | ||||
| PropertyPointerRNA *pprop; | PropertyPointerRNA *pprop; | ||||
| ▲ Show 20 Lines • Show All 697 Lines • Show Last 20 Lines | |||||