Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_draw.c
| Show First 20 Lines • Show All 807 Lines • ▼ Show 20 Lines | #endif | ||||
| /* retrieve the image and information about it */ | /* retrieve the image and information about it */ | ||||
| ima = ED_space_image(sima); | ima = ED_space_image(sima); | ||||
| ED_space_image_get_zoom(sima, ar, &zoomx, &zoomy); | ED_space_image_get_zoom(sima, ar, &zoomx, &zoomy); | ||||
| show_viewer = (ima && ima->source == IMA_SRC_VIEWER) != 0; | show_viewer = (ima && ima->source == IMA_SRC_VIEWER) != 0; | ||||
| show_render = (show_viewer && ima->type == IMA_TYPE_R_RESULT) != 0; | show_render = (show_viewer && ima->type == IMA_TYPE_R_RESULT) != 0; | ||||
| show_paint = (ima && (sima->mode == SI_MODE_PAINT) && (show_viewer == false) && (show_render == false)); | show_paint = (ima && (sima->mode == SI_MODE_PAINT) && (show_viewer == false) && (show_render == false)); | ||||
| show_stereo3d = (ima && (ima->flag & IMA_IS_STEREO) && (sima->iuser.flag & IMA_SHOW_STEREO)); | show_stereo3d = (ima && BKE_image_is_stereo(ima) && (sima->iuser.flag & IMA_SHOW_STEREO)); | ||||
| show_multilayer = ima && BKE_image_is_multilayer(ima); | show_multilayer = ima && BKE_image_is_multilayer(ima); | ||||
| if (show_viewer) { | if (show_viewer) { | ||||
| /* use locked draw for drawing viewer image buffer since the compositor | /* use locked draw for drawing viewer image buffer since the compositor | ||||
| * is running in separated thread and compositor could free this buffers. | * is running in separated thread and compositor could free this buffers. | ||||
| * other images are not modifying in such a way so they does not require | * other images are not modifying in such a way so they does not require | ||||
| * lock (sergey) | * lock (sergey) | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines | |||||