Fix T75715: crash rendering animation with persistent images
This commit is contained in:
parent
bd18ffe1f8
commit
e2eb47191d
Notes:
blender-bot
2023-02-14 06:00:45 +01:00
Referenced by issue #75715, Persistent Images causes crash while rendering animation
|
@ -605,9 +605,11 @@ bool RE_bake_engine(Render *re,
|
|||
engine->resolution_x = re->winx;
|
||||
engine->resolution_y = re->winy;
|
||||
|
||||
BLI_rw_mutex_lock(&re->partsmutex, THREAD_LOCK_WRITE);
|
||||
RE_parts_init(re);
|
||||
engine->tile_x = re->r.tilex;
|
||||
engine->tile_y = re->r.tiley;
|
||||
BLI_rw_mutex_unlock(&re->partsmutex);
|
||||
|
||||
if (type->bake) {
|
||||
engine->depsgraph = depsgraph;
|
||||
|
|
Loading…
Reference in New Issue