Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_add.c
| Show First 20 Lines • Show All 728 Lines • ▼ Show 20 Lines | static int sequencer_add_movie_strip_invoke(bContext *C, | ||||
| return OPERATOR_RUNNING_MODAL; | return OPERATOR_RUNNING_MODAL; | ||||
| } | } | ||||
| static void sequencer_add_draw(bContext *UNUSED(C), wmOperator *op) | static void sequencer_add_draw(bContext *UNUSED(C), wmOperator *op) | ||||
| { | { | ||||
| uiLayout *layout = op->layout; | uiLayout *layout = op->layout; | ||||
| SequencerAddData *sad = op->customdata; | SequencerAddData *sad = op->customdata; | ||||
| ImageFormatData *imf = &sad->im_format; | ImageFormatData *imf = &sad->im_format; | ||||
| PointerRNA imf_ptr, ptr; | PointerRNA imf_ptr; | ||||
| /* Main draw call. */ | /* Main draw call. */ | ||||
| RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr); | |||||
| uiDefAutoButsRNA( | uiDefAutoButsRNA( | ||||
| layout, &ptr, sequencer_add_draw_check_fn, NULL, NULL, UI_BUT_LABEL_ALIGN_NONE, false); | layout, op->ptr, sequencer_add_draw_check_fn, NULL, NULL, UI_BUT_LABEL_ALIGN_NONE, false); | ||||
| /* Image template. */ | /* Image template. */ | ||||
| RNA_pointer_create(NULL, &RNA_ImageFormatSettings, imf, &imf_ptr); | RNA_pointer_create(NULL, &RNA_ImageFormatSettings, imf, &imf_ptr); | ||||
| /* Multiview template. */ | /* Multiview template. */ | ||||
| if (RNA_boolean_get(op->ptr, "show_multiview")) { | if (RNA_boolean_get(op->ptr, "show_multiview")) { | ||||
| uiTemplateImageFormatViews(layout, &imf_ptr, op->ptr); | uiTemplateImageFormatViews(layout, &imf_ptr, op->ptr); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 474 Lines • Show Last 20 Lines | |||||