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:
parent
d23869eefa
commit
3c07967ef2
Notes:
blender-bot
2023-02-14 06:47:29 +01:00
Referenced by issue #63789, Generated noise texture is not infinite / looped
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue