Fix importing temporary screens
[blender.git] / source / blender / blenloader / intern / versioning_280.c
index b4f0b2ddfd22d5befe775ce63d1196fb62033614..57d36dede705a45b4f6ff6b6468f7abbaf6554c4 100644 (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);
                }