Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-04-06 16:54:47 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-04-06 16:54:47 +0400
commit0a9ec053c0b12aef27320c827a99e80bc674885a (patch)
tree9b052ed2a7f4c2f83b100b3e85822677498f2a2d /source/blender/makesrna/intern/rna_image.c
parentdbe3369ae2a593c2dc5349783fbb3d930ba3680b (diff)
Fix for Image.pixels set, buffer was not tagged as modified, patch by Domino Marama.
Diffstat (limited to 'source/blender/makesrna/intern/rna_image.c')
-rw-r--r--source/blender/makesrna/intern/rna_image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index 654155744c0..df5bd9f27f3 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -304,6 +304,8 @@ static void rna_Image_pixels_set(PointerRNA *ptr, const float *values)
for(i = 0; i < size; i++)
((unsigned char*)ibuf->rect)[i] = FTOCHAR(values[i]);
}
+
+ ibuf->userflags |= IB_BITMAPDIRTY;
}
BKE_image_release_ibuf(ima, lock);