Fix T44503 full sample does not display any preview any more.

The fix exposes another error not fixed in this commit, escaping the
render will not flush the full sample render result correctly.
This commit is contained in:
Antonis Ryakiotakis 2015-05-04 16:57:17 +02:00
parent 68fe630735
commit 1227e5c3d1
Notes: blender-bot 2023-02-14 09:12:05 +01:00
Referenced by issue #44682, Save Buffers cancelled renders show nothing in Image Editor
Referenced by issue #44503, Regression: Save Buffers breaks image display during render
1 changed files with 9 additions and 0 deletions

View File

@ -3623,6 +3623,15 @@ static ImBuf *image_get_render_result(Image *ima, ImageUser *iuser, void **lock_
if (rpass) {
channels = rpass->channels;
rectf = rpass->rect;
if (!rectf) {
/* Happens when Save Buffers is enabled.
* Use display buffer stored in the render layer.
*/
rect = (unsigned int *) rl->display_buffer;
byte_buffer_in_display_space = true;
}
dither = 0.0f; /* don't dither passes */
}