readfile update after version/subversion bump

Note, there is no need to leave doversion code outside a version/subversion nest.
e.g. having if version < 262   in a 2.61 file will make the code to double-run.
however this is the same case for the code nested outside the if versions ...
with the advantage of making ahoys/version bumping easier.

Ton himself was unaware of how we were doing this and suggested to get rid of the /* put subversion code here */ practise.
This commit is contained in:
Dalai Felinto
2012-02-15 18:17:31 +00:00
parent caf92365a5
commit 93526b4c72

View File

@@ -13062,20 +13062,18 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
}
}
}
/* put compatibility code here until next subversion bump */
{
{
Object *ob;
for(ob=main->object.first; ob; ob= ob->id.next) {
ModifierData *md;
for (md=ob->modifiers.first; md; md=md->next) {
if (md->type==eModifierType_Cloth) {
ClothModifierData *clmd = (ClothModifierData*) md;
if(clmd->sim_parms)
clmd->sim_parms->vel_damping = 1.0f;
}
if (main->versionfile < 262)
{
Object *ob;
for(ob=main->object.first; ob; ob= ob->id.next) {
ModifierData *md;
for (md=ob->modifiers.first; md; md=md->next) {
if (md->type==eModifierType_Cloth) {
ClothModifierData *clmd = (ClothModifierData*) md;
if(clmd->sim_parms)
clmd->sim_parms->vel_damping = 1.0f;
}
}
}