Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-15 23:20:51 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-15 23:22:50 +0300
commit8faaeef5fb03af2d6737e3816506fcde40c161b9 (patch)
tree82e2eab76ae4d9296e10ad72a6834ba8f576c0de /source/blender/editors/space_image
parentd061154b93209df25862ea7c1efc1ee0f862620a (diff)
Fix T67016: crash drawing image editor without image
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_draw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c
index 38253890624..97a3c7f2480 100644
--- a/source/blender/editors/space_image/image_draw.c
+++ b/source/blender/editors/space_image/image_draw.c
@@ -798,7 +798,9 @@ void draw_image_main(const bContext *C, ARegion *ar)
ED_space_image_get_zoom(sima, ar, &zoomx, &zoomy);
/* Tag image as in active use for garbage collector. */
- BKE_image_tag_time(ima);
+ if (ima) {
+ BKE_image_tag_time(ima);
+ }
show_viewer = (ima && ima->source == IMA_SRC_VIEWER) != 0;
show_render = (show_viewer && ima->type == IMA_TYPE_R_RESULT) != 0;