Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_buttons.c
| Show First 20 Lines • Show All 1,149 Lines • ▼ Show 20 Lines | else { | ||||
| uiTemplateViewsFormat(layout, imaptr, NULL); | uiTemplateViewsFormat(layout, imaptr, NULL); | ||||
| } | } | ||||
| } | } | ||||
| void uiTemplateImageFormatViews(uiLayout *layout, PointerRNA *imfptr, PointerRNA *ptr) | void uiTemplateImageFormatViews(uiLayout *layout, PointerRNA *imfptr, PointerRNA *ptr) | ||||
| { | { | ||||
| ImageFormatData *imf = imfptr->data; | ImageFormatData *imf = imfptr->data; | ||||
| if (ptr == NULL) { | if (ptr != NULL) { | ||||
| uiItemR(layout, ptr, "use_multiview", 0, NULL, ICON_NONE); | |||||
| if (!RNA_boolean_get(ptr, "use_multiview")) { | |||||
| return; | return; | ||||
| } | } | ||||
| } | |||||
| uiItemR(layout, ptr, "use_multiview", 0, NULL, ICON_NONE); | |||||
| if (RNA_boolean_get(ptr, "use_multiview")) { | |||||
| if (imf->imtype != R_IMF_IMTYPE_MULTILAYER) { | if (imf->imtype != R_IMF_IMTYPE_MULTILAYER) { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| PointerRNA stereo3d_format_ptr; | PointerRNA stereo3d_format_ptr; | ||||
| prop = RNA_struct_find_property(imfptr, "stereo_3d_format"); | prop = RNA_struct_find_property(imfptr, "stereo_3d_format"); | ||||
| stereo3d_format_ptr = RNA_property_pointer_get(imfptr, prop); | stereo3d_format_ptr = RNA_property_pointer_get(imfptr, prop); | ||||
| uiTemplateViewsFormat(layout, imfptr, &stereo3d_format_ptr); | uiTemplateViewsFormat(layout, imfptr, &stereo3d_format_ptr); | ||||
| } | } | ||||
| else { | else { | ||||
| uiTemplateViewsFormat(layout, imfptr, NULL); | uiTemplateViewsFormat(layout, imfptr, NULL); | ||||
| } | } | ||||
| } | } | ||||
| } | |||||
| void uiTemplateImageLayers(uiLayout *layout, bContext *C, Image *ima, ImageUser *iuser) | void uiTemplateImageLayers(uiLayout *layout, bContext *C, Image *ima, ImageUser *iuser) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| /* render layers and passes */ | /* render layers and passes */ | ||||
| if (ima && iuser) { | if (ima && iuser) { | ||||
| RenderResult *rr; | RenderResult *rr; | ||||
| ▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines | |||||