[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36006] trunk/blender/source/blender/ makesrna/intern/rna_image.c: Fix for slow Image.pixels, make it a flat instead of multidimensional array.
Domino Marama
domino at dominodesigns.info
Tue Apr 5 10:39:04 CEST 2011
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);
More information about the Bf-committers
mailing list