Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Context not available. | |||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_camera_types.h" | #include "DNA_camera_types.h" | ||||
| #include "DNA_cloth_types.h" | |||||
| #include "DNA_constraint_types.h" | #include "DNA_constraint_types.h" | ||||
| #include "DNA_gpu_types.h" | #include "DNA_gpu_types.h" | ||||
| #include "DNA_group_types.h" | #include "DNA_group_types.h" | ||||
| Context not available. | |||||
| #include "BKE_gpencil.h" | #include "BKE_gpencil.h" | ||||
| #include "BKE_paint.h" | #include "BKE_paint.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "BKE_cloth.h" | |||||
| #include "BLT_translation.h" | #include "BLT_translation.h" | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!DNA_struct_elem_find(fd->filesdna, "ClothSimSettings", "short", "bending_model")) { | |||||
| for (Object *ob = bmain->object.first; ob; ob = ob->id.next) { | |||||
| for (ModifierData *md = ob->modifiers.first; md; md = md->next) { | |||||
| if (md->type == eModifierType_Cloth) { | |||||
| ClothModifierData *clmd = (ClothModifierData *)md; | |||||
| clmd->sim_parms->bending_model = CLOTH_BENDING_LINEAR; | |||||
| clmd->sim_parms->tension = clmd->sim_parms->structural; | |||||
| clmd->sim_parms->compression = clmd->sim_parms->structural; | |||||
| clmd->sim_parms->shear = clmd->sim_parms->structural; | |||||
| clmd->sim_parms->max_tension = clmd->sim_parms->max_struct; | |||||
| clmd->sim_parms->max_compression = clmd->sim_parms->max_struct; | |||||
| clmd->sim_parms->max_shear = clmd->sim_parms->max_struct; | |||||
| clmd->sim_parms->vgroup_shear = clmd->sim_parms->vgroup_struct; | |||||
| clmd->sim_parms->tension_damp = clmd->sim_parms->Cdis; | |||||
| clmd->sim_parms->compression_damp = clmd->sim_parms->Cdis; | |||||
| clmd->sim_parms->shear_damp = clmd->sim_parms->Cdis; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||