svn merge ^/trunk/blender -r44118:44136
[blender.git] / source / blender / blenloader / intern / readfile.c
index cee6e50ba5fb20f4b9a28eb9275d9863bd15d13d..a0811fb0fcdcce29aed380b0f5b28565df8aa128 100644 (file)
@@ -13136,20 +13136,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;
                                }
                        }
                }