diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-05-20 02:22:54 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-05-20 02:22:54 +0300 |
commit | e610964e890f6b5b2ead0e3a1ca0df5996ec5c95 (patch) | |
tree | 523877a2a4b28661c5d83e89949fdd46245629e4 | |
parent | 183ba284f213903f2208349fe1dd57c07c327ad9 (diff) | |
parent | dfe8195dfe8384c93995845b25e9a34b1afdf538 (diff) |
Merge branch 'blender-v2.83-release'
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 2887e8b2a8b..4a0f3aa0ea3 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -8204,23 +8204,9 @@ static void lib_link_workspace_layout_restore(struct IDNameLib_Map *id_map, LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) { if (sl->spacetype == SPACE_VIEW3D) { View3D *v3d = (View3D *)sl; - ARegion *region; v3d->camera = restore_pointer_by_name(id_map, (ID *)v3d->camera, USER_REAL); v3d->ob_center = restore_pointer_by_name(id_map, (ID *)v3d->ob_center, USER_REAL); - - /* Free render engines for now. */ - ListBase *regionbase = (sl == area->spacedata.first) ? &area->regionbase : - &sl->regionbase; - for (region = regionbase->first; region; region = region->next) { - if (region->regiontype == RGN_TYPE_WINDOW) { - RegionView3D *rv3d = region->regiondata; - if (rv3d && rv3d->render_engine) { - RE_engine_free(rv3d->render_engine); - rv3d->render_engine = NULL; - } - } - } } else if (sl->spacetype == SPACE_GRAPH) { SpaceGraph *sipo = (SpaceGraph *)sl; |