Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_edit.c
| Show First 20 Lines • Show All 401 Lines • ▼ Show 20 Lines | bool ED_image_slot_cycle(struct Image *image, int direction) | ||||
| if (num_slots == 1) { | if (num_slots == 1) { | ||||
| image->render_slot = 0; | image->render_slot = 0; | ||||
| } | } | ||||
| else if (i == num_slots) { | else if (i == num_slots) { | ||||
| image->render_slot = ((cur == 1) ? 0 : 1); | image->render_slot = ((cur == 1) ? 0 : 1); | ||||
| } | } | ||||
| if ((cur != image->render_slot)) { | |||||
| image->gpuflag |= IMA_GPU_REFRESH; | |||||
| } | |||||
| return (cur != image->render_slot); | return (cur != image->render_slot); | ||||
| } | } | ||||
| void ED_space_image_scopes_update(const struct bContext *C, | void ED_space_image_scopes_update(const struct bContext *C, | ||||
| struct SpaceImage *sima, | struct SpaceImage *sima, | ||||
| struct ImBuf *ibuf, | struct ImBuf *ibuf, | ||||
| bool use_view_settings) | bool use_view_settings) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines | |||||