Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_ops.c
| Show First 20 Lines • Show All 1,957 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| uiLayout *layout = op->layout; | uiLayout *layout = op->layout; | ||||
| ImageFormatData *imf = op->customdata; | ImageFormatData *imf = op->customdata; | ||||
| PointerRNA imf_ptr, ptr; | PointerRNA imf_ptr, ptr; | ||||
| const bool is_multiview = RNA_boolean_get(op->ptr, "show_multiview"); | const bool is_multiview = RNA_boolean_get(op->ptr, "show_multiview"); | ||||
| /* image template */ | /* image template */ | ||||
| RNA_pointer_create(NULL, &RNA_ImageFormatSettings, imf, &imf_ptr); | RNA_pointer_create(NULL, &RNA_ImageFormatSettings, imf, &imf_ptr); | ||||
| uiTemplateImageSettings(layout, &imf_ptr, false); | uiTemplateImageSettings(layout, &imf_ptr, true); | ||||
| /* main draw call */ | /* main draw call */ | ||||
| RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr); | RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr); | ||||
| uiDefAutoButsRNA( | uiDefAutoButsRNA( | ||||
| layout, &ptr, image_save_as_draw_check_prop, NULL, NULL, UI_BUT_LABEL_ALIGN_NONE, false); | layout, &ptr, image_save_as_draw_check_prop, NULL, NULL, UI_BUT_LABEL_ALIGN_NONE, false); | ||||
| /* multiview template */ | /* multiview template */ | ||||
| if (is_multiview) { | if (is_multiview) { | ||||
| ▲ Show 20 Lines • Show All 1,858 Lines • Show Last 20 Lines | |||||