Fix T75715: crash rendering animation with persistent images

This commit is contained in:
Brecht Van Lommel 2020-05-14 02:13:40 +02:00
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
1 changed files with 2 additions and 0 deletions

View File

@ -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;