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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user