Fix T62284: apply a retroactive fix for T57366 to old files.

This commit is contained in:
Alexander Gavrilov 2019-03-15 14:58:04 +03:00
parent 9a499636df
commit e583e86a9a
Notes: blender-bot 2023-02-14 19:18:50 +01:00
Referenced by issue #62612, Saving with "Remap Relative" makes ALL paths relative
Referenced by issue blender/blender-addons#62284, Import rigify character from 2.79 into 2.80 yields no shapes
1 changed files with 6 additions and 0 deletions

View File

@ -2127,6 +2127,12 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
if (!MAIN_VERSION_ATLEAST(bmain, 280, 28)) {
for (Mesh *mesh = bmain->meshes.first; mesh; mesh = mesh->id.next) {
BKE_mesh_calc_edges_loose(mesh);
}
}
if (!MAIN_VERSION_ATLEAST(bmain, 280, 29)) {
for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) {
for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) {