Fix writing Iris images w/ invalid header

Regression in e142ae77ca
This commit is contained in:
Campbell Barton
2017-09-16 16:07:27 +10:00
parent 7c8e87fc52
commit d09c429e30

View File

@@ -703,7 +703,7 @@ static int output_iris(unsigned int *lptr, int xsize, int ysize, int zsize, cons
lumbuf = (unsigned int *)MEM_mallocN(xsize * sizeof(int), "iris lumbuf");
memset(image, 0, sizeof(IMAGE));
image->imagic = IMB_FTYPE_IMAGIC;
image->imagic = IMAGIC;
image->type = RLE(1);
if (zsize > 1)
image->dim = 3;