Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2012-02-15 22:17:31 +0400
committerDalai Felinto <dfelinto@gmail.com>2012-02-15 22:17:31 +0400
commit93526b4c72f76f8d8d382a11e7d0f8e4f21c4a7c (patch)
tree5f9d908163ee57fb895cd2c6330a1254ca727662 /source/blender/blenloader
parentcaf92365a515e9da90ac969e7af5d92f215b7b93 (diff)
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.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 5f737ea4e53..ff737339835 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -13062,20 +13062,18 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
}
}
}
-
- /* put compatibility code here until next subversion bump */
+
+ if (main->versionfile < 262)
{
- {
- Object *ob;
- for(ob=main->object.first; ob; ob= ob->id.next) {
- ModifierData *md;
+ 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;
- }
+ 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;
}
}
}