diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-14 18:28:13 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-14 19:00:06 +0300 |
commit | eefd68013cb8b4c9e69bf76d9f7ad3d8bd68e065 (patch) | |
tree | 828bec403291b1a3013188aa80c6c2ac3aec3de0 /source/blender/makesrna/intern | |
parent | 0ab7e78b85cdb08813f645ea98d028047c289492 (diff) |
Cleanup: isolate image dirty flag access in functions
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c index 34373e469c1..83ec33286f4 100644 --- a/source/blender/makesrna/intern/rna_image.c +++ b/source/blender/makesrna/intern/rna_image.c @@ -406,7 +406,8 @@ static void rna_Image_pixels_set(PointerRNA *ptr, const float *values) ((unsigned char *)ibuf->rect)[i] = unit_float_to_uchar_clamp(values[i]); } - ibuf->userflags |= IB_BITMAPDIRTY | IB_DISPLAY_BUFFER_INVALID | IB_MIPMAP_INVALID; + ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID | IB_MIPMAP_INVALID; + BKE_image_mark_dirty(ima, ibuf); if (!G.background) { GPU_free_image(ima); } |