Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 1,880 Lines • ▼ Show 20 Lines | static void node_composit_buts_file_output_ex(uiLayout *layout, bContext *C, PointerRNA *ptr) | ||||
| PointerRNA active_input_ptr, op_ptr; | PointerRNA active_input_ptr, op_ptr; | ||||
| wmOperatorType *ot; | wmOperatorType *ot; | ||||
| uiLayout *row, *col; | uiLayout *row, *col; | ||||
| int active_index; | int active_index; | ||||
| const bool multilayer = RNA_enum_get(&imfptr, "file_format") == R_IMF_IMTYPE_MULTILAYER; | const bool multilayer = RNA_enum_get(&imfptr, "file_format") == R_IMF_IMTYPE_MULTILAYER; | ||||
| const bool is_multiview = (scene->r.scemode & R_MULTIVIEW) != 0; | const bool is_multiview = (scene->r.scemode & R_MULTIVIEW) != 0; | ||||
| node_composit_buts_file_output(layout, C, ptr); | node_composit_buts_file_output(layout, C, ptr); | ||||
| uiTemplateImageSettings(layout, &imfptr, false); | uiTemplateImageSettings(layout, &imfptr, true); | ||||
| /* disable stereo output for multilayer, too much work for something that no one will use */ | /* disable stereo output for multilayer, too much work for something that no one will use */ | ||||
| /* if someone asks for that we can implement it */ | /* if someone asks for that we can implement it */ | ||||
| if (is_multiview) { | if (is_multiview) { | ||||
| uiTemplateImageFormatViews(layout, &imfptr, NULL); | uiTemplateImageFormatViews(layout, &imfptr, NULL); | ||||
| } | } | ||||
| uiItemS(layout); | uiItemS(layout); | ||||
| ▲ Show 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | else { | ||||
| imfptr = RNA_pointer_get(&active_input_ptr, "format"); | imfptr = RNA_pointer_get(&active_input_ptr, "format"); | ||||
| col = uiLayoutColumn(layout, true); | col = uiLayoutColumn(layout, true); | ||||
| uiItemL(col, IFACE_("Format:"), ICON_NONE); | uiItemL(col, IFACE_("Format:"), ICON_NONE); | ||||
| uiItemR(col, &active_input_ptr, "use_node_format", 0, NULL, ICON_NONE); | uiItemR(col, &active_input_ptr, "use_node_format", 0, NULL, ICON_NONE); | ||||
| col = uiLayoutColumn(layout, false); | col = uiLayoutColumn(layout, false); | ||||
| uiLayoutSetActive(col, RNA_boolean_get(&active_input_ptr, "use_node_format") == false); | uiLayoutSetActive(col, RNA_boolean_get(&active_input_ptr, "use_node_format") == false); | ||||
| uiTemplateImageSettings(col, &imfptr, false); | uiTemplateImageSettings(col, &imfptr, true); | ||||
| if (is_multiview) { | if (is_multiview) { | ||||
| uiTemplateImageFormatViews(layout, &imfptr, NULL); | uiTemplateImageFormatViews(layout, &imfptr, NULL); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,998 Lines • Show Last 20 Lines | |||||