mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T38969: RenderResult in RenderPart can be NULL if multithreaded
renders are cancelled early.
This commit is contained in:
parent
a8dc5b274b
commit
8e7ec3652e
1 changed files with 5 additions and 2 deletions
|
|
@ -532,7 +532,10 @@ static void image_rect_update(void *rjv, RenderResult *rr, volatile rcti *renrec
|
|||
*(rj->do_update) = TRUE;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (rr == NULL)
|
||||
return;
|
||||
|
||||
/* update part of render */
|
||||
render_image_update_pass_and_layer(rj, rr, &rj->iuser);
|
||||
ibuf = BKE_image_acquire_ibuf(ima, &rj->iuser, &lock);
|
||||
|
|
@ -550,7 +553,7 @@ static void image_rect_update(void *rjv, RenderResult *rr, volatile rcti *renrec
|
|||
{
|
||||
image_buffer_rect_update(rj, rr, ibuf, &rj->iuser, renrect);
|
||||
}
|
||||
|
||||
|
||||
/* make jobs timer to send notifier */
|
||||
*(rj->do_update) = TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue