Fix importing temporary screens
authorSybren A. Stüvel <sybren@stuvel.eu>
Wed, 6 Jun 2018 09:13:05 +0000 (11:13 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Wed, 6 Jun 2018 09:13:11 +0000 (11:13 +0200)
Apparently Blender 2.79 could save temporary screens; those should not be
converted to workspaces.

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);
                }