[Bf-blender-cvs] [31f67f76697] blender-v2.79-release: Fix writing Iris images w/ invalid header

Campbell Barton noreply at git.blender.org
Wed Jan 17 21:03:38 CET 2018


Commit: 31f67f766979818b574047da7e533ba0f35039fc
Author: Campbell Barton
Date:   Sat Sep 16 16:07:27 2017 +1000
Branches: blender-v2.79-release
https://developer.blender.org/rB31f67f766979818b574047da7e533ba0f35039fc

Fix writing Iris images w/ invalid header

Regression in e142ae77cadf

===================================================================

M	source/blender/imbuf/intern/iris.c

===================================================================

diff --git a/source/blender/imbuf/intern/iris.c b/source/blender/imbuf/intern/iris.c
index 7a9fa2b9768..d2e72a02bc5 100644
--- a/source/blender/imbuf/intern/iris.c
+++ b/source/blender/imbuf/intern/iris.c
@@ -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;



More information about the Bf-blender-cvs mailing list