Fix for Freestyle crash in bordered animation rendering
This commit is contained in:
parent
f6db580041
commit
ef0883bc2b
|
@ -1638,6 +1638,10 @@ static void do_render_fields_blur_3d(Render *re)
|
|||
if (re->r.mode & R_BORDER) {
|
||||
if ((re->r.mode & R_CROP) == 0) {
|
||||
RenderResult *rres;
|
||||
|
||||
/* backup */
|
||||
const rcti orig_disprect = re->disprect;
|
||||
const int orig_rectx = re->rectx, orig_recty = re->recty;
|
||||
|
||||
BLI_rw_mutex_lock(&re->resultmutex, THREAD_LOCK_WRITE);
|
||||
|
||||
|
@ -1660,6 +1664,11 @@ static void do_render_fields_blur_3d(Render *re)
|
|||
|
||||
re->display_init(re->dih, re->result);
|
||||
re->display_update(re->duh, re->result, NULL);
|
||||
|
||||
/* restore the disprect from border */
|
||||
re->disprect = orig_disprect;
|
||||
re->rectx = orig_rectx;
|
||||
re->recty = orig_recty;
|
||||
}
|
||||
else {
|
||||
/* set offset (again) for use in compositor, disprect was manipulated. */
|
||||
|
|
Loading…
Reference in New Issue