Fix crash opening some .blend files after recent fix for hidden preview regions.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Sun, 27 Mar 2016 00:55:51 +0000 (01:55 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Sun, 27 Mar 2016 00:55:51 +0000 (01:55 +0100)
source/blender/blenloader/intern/versioning_270.c

index 049a8b65dabc0725b9c13d1226b1c5a22b6eb685..adf64d217e1cd9cdb1b7b1f0196eae29ffe70373 100644 (file)
@@ -1081,7 +1081,7 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
                                                                /* remove preview region for sequencer-only view! */
                                                                if (ar->regiontype == RGN_TYPE_PREVIEW) {
                                                                        BKE_area_region_free(NULL, ar);
-                                                                       BLI_freelinkN(&sl->regionbase, ar);
+                                                                       BLI_freelinkN(lb, ar);
                                                                        break;
                                                                }
                                                        }