Fix compilation issue due to last commit.
authorClément Foucault <foucault.clem@gmail.com>
Tue, 5 Jun 2018 17:49:12 +0000 (19:49 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 5 Jun 2018 17:49:12 +0000 (19:49 +0200)
source/blender/blenloader/intern/versioning_280.c

index cbfcce963e3a26617d7f34aba2953702c2e5ccfe..b4f0b2ddfd22d5befe775ce63d1196fb62033614 100644 (file)
@@ -1554,7 +1554,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
                        }
                }
                if (!DNA_struct_elem_find(fd->filesdna, "View3DShading", "float", "wireframe_threshold")) {
-                       for (bScreen *screen = main->screen.first; screen; screen = screen->id.next) {
+                       for (bScreen *screen = bmain->screen.first; screen; screen = screen->id.next) {
                                for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) {
                                        for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) {
                                                if (sl->spacetype == SPACE_VIEW3D) {