Bake API: fix T40054 - baked image update on uv/imag editor for linear/float/noncolor, ...

All image colorspaces should be displaying correctly in the UV/Image Editor.

Viewport may still present an issue, but it was reported separately
anyways (T40055)

Patch reviewed (and corrected) by Sergey Sharybin
This commit is contained in:
Dalai Felinto 2014-05-06 18:17:21 -03:00
parent 20f7aaf6be
commit 2c4ea2a11e
Notes: blender-bot 2023-02-14 10:41:26 +01:00
Referenced by issue #40054, Cycles Bake requires to save externally first/won't let me save file externally
1 changed files with 5 additions and 1 deletions

View File

@ -170,7 +170,11 @@ static bool write_internal_bake_pixels(
if (margin > 0)
RE_bake_margin(ibuf, mask_buffer, margin);
ibuf->userflags |= IB_BITMAPDIRTY;
ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID | IB_BITMAPDIRTY;
if (ibuf->rect_float)
ibuf->userflags |= IB_RECT_INVALID;
BKE_image_release_ibuf(image, ibuf, NULL);
if (mask_buffer)