Multires: Remove legacy compatibility code
It was rather a huge chunk of code, which started to become more harder to maintain with the transition to OpenSubdiv based implementation. Because of this transition, the compatibility was also rather on a poor side. Remove compatibility support for pre-2.50.9 multires. Ref T77107 Reviewed By: brecht, mont29 Differential Revision: https://developer.blender.org/D9238
This commit is contained in:
@@ -1959,7 +1959,6 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain)
|
||||
Light *la;
|
||||
Material *ma;
|
||||
ParticleSettings *part;
|
||||
Mesh *me;
|
||||
bNodeTree *ntree;
|
||||
Tex *tex;
|
||||
ModifierData *md;
|
||||
@@ -2074,23 +2073,6 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain)
|
||||
}
|
||||
}
|
||||
|
||||
/* Copy over old per-level multires vertex data
|
||||
* into a single vertex array in struct Multires */
|
||||
for (me = bmain->meshes.first; me; me = me->id.next) {
|
||||
if (me->mr && !me->mr->verts) {
|
||||
MultiresLevel *lvl = me->mr->levels.last;
|
||||
if (lvl) {
|
||||
me->mr->verts = lvl->verts;
|
||||
lvl->verts = NULL;
|
||||
/* Don't need the other vert arrays */
|
||||
for (lvl = lvl->prev; lvl; lvl = lvl->prev) {
|
||||
MEM_freeN(lvl->verts);
|
||||
lvl->verts = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bmain->versionfile != 245 || bmain->subversionfile < 1) {
|
||||
for (la = bmain->lights.first; la; la = la->id.next) {
|
||||
la->falloff_type = LA_FALLOFF_INVLINEAR;
|
||||
|
||||
Reference in New Issue
Block a user