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:
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-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 377c438f874..f7a493167a9 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -13068,20 +13068,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;
}
}
}