On Mon, 2011-04-04 at 17:10 +0000, Brecht Van Lommel wrote: > Revision: 36006 > > http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36006 > Author: blendix > Date: 2011-04-04 17:10:48 +0000 (Mon, 04 Apr 2011) > Log Message: > ----------- > Fix for slow Image.pixels, make it a flat instead of multidimensional array.
That working great now thanks, just one more small patch needed though.. It's just to mark the image as dirty when image.pixels is set :) === modified file 'source/blender/makesrna/intern/rna_image.c' --- source/blender/makesrna/intern/rna_image.c 2011-04-04 17:10:48 +0000 +++ source/blender/makesrna/intern/rna_image.c 2011-04-05 08:29:44 +0000 @@ -304,6 +304,7 @@ for(i = 0; i < size; i++) ((unsigned char*)ibuf->rect)[i] = FTOCHAR(values[i]); } + ibuf->userflags |= IB_BITMAPDIRTY; } BKE_image_release_ibuf(ima, lock); _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers