Fix importing temporary screens

Apparently Blender 2.79 could save temporary screens; those should not be
converted to workspaces.
This commit is contained in:
Sybren A. Stüvel 2018-06-06 11:13:05 +02:00
parent 23db3a5ade
commit 03b8e4f608
Notes: blender-bot 2023-02-14 05:46:39 +01:00
Referenced by issue #55346, Copy/Paste pose doesn't key
Referenced by issue #55348, Esc while naming marker doesn't work
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,9 @@ static void do_version_workspaces_create_from_screens(Main *bmain)
Scene *scene = screen->scene;
WorkSpace *workspace;
ViewLayer *layer = BLI_findlink(&scene->view_layers, scene->r.actlay);
if (screen->temp) {
continue;
}
if (!layer) {
layer = BKE_view_layer_default_view(scene);
}