From 3c07967ef28e5928049647daa0673f9db91d083f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 3 May 2019 19:07:22 +0200 Subject: Fix Cycles crash when trying to load image that does not exist It was crashing due to array out of bounds access. This is not a great fix, but brings back behavior the same as before now. Perhaps images that failed to load should be stored separately somewhere. --- intern/cycles/render/image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/render/image.h b/intern/cycles/render/image.h index d5bc37e58d7..c05a65f6c3e 100644 --- a/intern/cycles/render/image.h +++ b/intern/cycles/render/image.h @@ -57,7 +57,7 @@ class ImageMetaData { height(0), depth(0), builtin_free_cache(NULL), - type(IMAGE_DATA_NUM_TYPES), + type((ImageDataType)0), colorspace(u_colorspace_raw), compress_as_srgb(false) { -- cgit v1.2.3