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/editors/object/object_bake_api.c | |
parent | 0ab7e78b85cdb08813f645ea98d028047c289492 (diff) |
Cleanup: isolate image dirty flag access in functions
Diffstat (limited to 'source/blender/editors/object/object_bake_api.c')
-rw-r--r-- | source/blender/editors/object/object_bake_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c index 5ae757cac56..da95db92332 100644 --- a/source/blender/editors/object/object_bake_api.c +++ b/source/blender/editors/object/object_bake_api.c @@ -277,7 +277,8 @@ static bool write_internal_bake_pixels(Image *image, RE_bake_margin(ibuf, mask_buffer, margin); } - ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID | IB_BITMAPDIRTY; + ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID; + BKE_image_mark_dirty(image, ibuf); if (ibuf->rect_float) { ibuf->userflags |= IB_RECT_INVALID; |