Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screendump.c
| Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | static void screenshot_draw(bContext *UNUSED(C), wmOperator *op) | ||||
| uiLayoutSetPropDecorate(layout, false); | uiLayoutSetPropDecorate(layout, false); | ||||
| /* image template */ | /* image template */ | ||||
| PointerRNA ptr; | PointerRNA ptr; | ||||
| RNA_pointer_create(NULL, &RNA_ImageFormatSettings, &scd->im_format, &ptr); | RNA_pointer_create(NULL, &RNA_ImageFormatSettings, &scd->im_format, &ptr); | ||||
| uiTemplateImageSettings(layout, &ptr, false); | uiTemplateImageSettings(layout, &ptr, false); | ||||
| /* main draw call */ | /* main draw call */ | ||||
| RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr); | |||||
| uiDefAutoButsRNA( | uiDefAutoButsRNA( | ||||
| layout, &ptr, screenshot_draw_check_prop, NULL, NULL, UI_BUT_LABEL_ALIGN_NONE, false); | layout, op->ptr, screenshot_draw_check_prop, NULL, NULL, UI_BUT_LABEL_ALIGN_NONE, false); | ||||
| } | } | ||||
| static bool screenshot_poll(bContext *C) | static bool screenshot_poll(bContext *C) | ||||
| { | { | ||||
| if (G.background) { | if (G.background) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| Show All 31 Lines | |||||