add foreachIDLink function for cloth, remove cloth specific newlibadr calls in readfile.
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index 3987b082aeb03fcacb6fe0ddf5f16bb7a9145aed..49579432de2b0d99641be884e1d66251b0eaa6f6 100644 (file)
@@ -3847,16 +3847,6 @@ static void lib_link_object(FileData *fd, Main *main)
                                }
                        }
 
-                       {
-                               ClothModifierData *clmd = (ClothModifierData *)modifiers_findByType(ob, eModifierType_Cloth);
-                               
-                               if(clmd) 
-                               {
-                                       clmd->sim_parms->effector_weights->group = newlibadr(fd, ob->id.lib, clmd->sim_parms->effector_weights->group);
-                                       clmd->coll_parms->group= newlibadr(fd, ob->id.lib, clmd->coll_parms->group);
-                               }
-                       }
-                       
                        /* texture field */
                        if(ob->pd)
                                lib_link_partdeflect(fd, &ob->id, ob->pd);