Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_buttons.c
| Context not available. | |||||
| Image *image = image_p; | Image *image = image_p; | ||||
| int slot_id; | int slot_id; | ||||
| uiDefBut(block, | |||||
| UI_BTYPE_LABEL, | |||||
| 0, | |||||
| IFACE_("Slot"), | |||||
| 0, | |||||
| 0, | |||||
| UI_UNIT_X * 5, | |||||
| UI_UNIT_Y, | |||||
| NULL, | |||||
| 0.0, | |||||
| 0.0, | |||||
| 0, | |||||
| 0, | |||||
| ""); | |||||
| uiItemS(layout); | |||||
| slot_id = BLI_listbase_count(&image->renderslots) - 1; | slot_id = BLI_listbase_count(&image->renderslots) - 1; | ||||
| for (RenderSlot *slot = image->renderslots.last; slot; slot = slot->prev) { | for (RenderSlot *slot = image->renderslots.last; slot; slot = slot->prev) { | ||||
| char str[64]; | char str[64]; | ||||
| Context not available. | |||||
| ""); | ""); | ||||
| slot_id--; | slot_id--; | ||||
| } | } | ||||
| uiItemS(layout); | |||||
| uiDefBut(block, | |||||
| UI_BTYPE_LABEL, | |||||
| 0, | |||||
| IFACE_("Slot"), | |||||
| 0, | |||||
| 0, | |||||
| UI_UNIT_X * 5, | |||||
| UI_UNIT_Y, | |||||
| NULL, | |||||
| 0.0, | |||||
| 0.0, | |||||
| 0, | |||||
| 0, | |||||
| ""); | |||||
| } | } | ||||
| static bool ui_imageuser_slot_menu_step(bContext *C, int direction, void *image_p) | static bool ui_imageuser_slot_menu_step(bContext *C, int direction, void *image_p) | ||||
| Context not available. | |||||
| UI_block_layout_set_current(block, layout); | UI_block_layout_set_current(block, layout); | ||||
| uiLayoutColumn(layout, false); | uiLayoutColumn(layout, false); | ||||
| uiDefBut(block, | |||||
| UI_BTYPE_LABEL, | |||||
| 0, | |||||
| IFACE_("Layer"), | |||||
| 0, | |||||
| 0, | |||||
| UI_UNIT_X * 5, | |||||
| UI_UNIT_Y, | |||||
| NULL, | |||||
| 0.0, | |||||
| 0.0, | |||||
| 0, | |||||
| 0, | |||||
| ""); | |||||
| uiItemS(layout); | |||||
| nr = BLI_listbase_count(&rr->layers) - 1; | nr = BLI_listbase_count(&rr->layers) - 1; | ||||
| fake_name = ui_imageuser_layer_fake_name(rr); | fake_name = ui_imageuser_layer_fake_name(rr); | ||||
| Context not available. | |||||
| goto final; | goto final; | ||||
| } | } | ||||
| uiItemS(layout); | |||||
| uiDefBut(block, | |||||
| UI_BTYPE_LABEL, | |||||
| 0, | |||||
| IFACE_("Layer"), | |||||
| 0, | |||||
| 0, | |||||
| UI_UNIT_X * 5, | |||||
| UI_UNIT_Y, | |||||
| NULL, | |||||
| 0.0, | |||||
| 0.0, | |||||
| 0, | |||||
| 0, | |||||
| ""); | |||||
| BLI_assert(nr == -1); | BLI_assert(nr == -1); | ||||
| BKE_image_release_renderresult(scene, image); | BKE_image_release_renderresult(scene, image); | ||||
| Context not available. | |||||
| UI_block_layout_set_current(block, layout); | UI_block_layout_set_current(block, layout); | ||||
| uiLayoutColumn(layout, false); | uiLayoutColumn(layout, false); | ||||
| uiDefBut(block, | |||||
| UI_BTYPE_LABEL, | |||||
| 0, | |||||
| IFACE_("Pass"), | |||||
| 0, | |||||
| 0, | |||||
| UI_UNIT_X * 5, | |||||
| UI_UNIT_Y, | |||||
| NULL, | |||||
| 0.0, | |||||
| 0.0, | |||||
| 0, | |||||
| 0, | |||||
| ""); | |||||
| uiItemS(layout); | |||||
| nr = (rl == NULL) ? 1 : 0; | nr = (rl == NULL) ? 1 : 0; | ||||
| ListBase added_passes; | ListBase added_passes; | ||||
| Context not available. | |||||
| ""); | ""); | ||||
| } | } | ||||
| uiItemS(layout); | |||||
| uiDefBut(block, | |||||
| UI_BTYPE_LABEL, | |||||
| 0, | |||||
| IFACE_("Pass"), | |||||
| 0, | |||||
| 0, | |||||
| UI_UNIT_X * 5, | |||||
| UI_UNIT_Y, | |||||
| NULL, | |||||
| 0.0, | |||||
| 0.0, | |||||
| 0, | |||||
| 0, | |||||
| ""); | |||||
| BLI_freelistN(&added_passes); | BLI_freelistN(&added_passes); | ||||
| BKE_image_release_renderresult(scene, image); | BKE_image_release_renderresult(scene, image); | ||||
| Context not available. | |||||