diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-27 13:43:06 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-27 13:43:06 +0300 |
commit | 6de8ff579695f7c831684f1355ff4b1f9494a32b (patch) | |
tree | d993c0a20768b5065d1c315514d39d327c8ef92a /source/blender/blenkernel/intern/cloth.c | |
parent | 5216dd5fce49efbb7a86a795bbfea664108c65d4 (diff) | |
parent | 81ab9ef968d392aa8edc79566bf02e23f93da7a8 (diff) |
Merge branch 'blender2.7'
Diffstat (limited to 'source/blender/blenkernel/intern/cloth.c')
-rw-r--r-- | source/blender/blenkernel/intern/cloth.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/cloth.c b/source/blender/blenkernel/intern/cloth.c index 75e1884f9a3..30b5d92bdb7 100644 --- a/source/blender/blenkernel/intern/cloth.c +++ b/source/blender/blenkernel/intern/cloth.c @@ -1356,6 +1356,11 @@ static int cloth_build_springs ( ClothModifierData *clmd, Mesh *mesh ) } } + clmd->sim_parms->avg_spring_len = 0.0f; + for (int i = 0; i < mvert_num; i++) { + cloth->verts[i].avg_spring_len = 0.0f; + } + /* Structural springs. */ for (int i = 0; i < numedges; i++) { spring = (ClothSpring *)MEM_callocN ( sizeof ( ClothSpring ), "cloth spring" ); |