Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_buttons.c
| Context not available. | |||||
| uiItemR(col, &imaptr, "use_view_as_render", 0, NULL, ICON_NONE); | uiItemR(col, &imaptr, "use_view_as_render", 0, NULL, ICON_NONE); | ||||
| if (ima->source != IMA_SRC_GENERATED) { | if (ima->source != IMA_SRC_GENERATED) { | ||||
| if (compact == 0) { /* background image view doesnt need these */ | if (compact == 0) { /* background image view doesn't need these */ | ||||
| ImBuf *ibuf = BKE_image_acquire_ibuf(ima, iuser, NULL); | ImBuf *ibuf = BKE_image_acquire_ibuf(ima, iuser, NULL); | ||||
| bool has_alpha = true; | bool has_alpha = true; | ||||
| Context not available. | |||||
| PointerRNA display_settings_ptr; | PointerRNA display_settings_ptr; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| const int depth_ok = BKE_imtype_valid_depths(imf->imtype); | const int depth_ok = BKE_imtype_valid_depths(imf->imtype); | ||||
| /* some settings depend on this being a scene thats rendered */ | /* some settings depend on this being a scene that's rendered */ | ||||
| const bool is_render_out = (id && GS(id->name) == ID_SCE); | const bool is_render_out = (id && GS(id->name) == ID_SCE); | ||||
| uiLayout *col; | uiLayout *col; | ||||
| Context not available. | |||||