diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-09-17 16:21:06 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:01 +0300 |
commit | bbae8f88b8f305a8ed85cab718d2a66b476da3c1 (patch) | |
tree | d1f4950ca2845f098a5d452db31ce390a3ed7dc0 /source/blender/blenkernel/intern/cloth.c | |
parent | be016daf15de7c1581a096b17c1380a35d742aa0 (diff) |
Made the voxel grid size for hair interaction configurable and increased
the default to 32.
Conflicts:
source/blender/blenloader/intern/versioning_270.c
Diffstat (limited to 'source/blender/blenkernel/intern/cloth.c')
-rw-r--r-- | source/blender/blenkernel/intern/cloth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/cloth.c b/source/blender/blenkernel/intern/cloth.c index 9fb42d5e989..4132fc86608 100644 --- a/source/blender/blenkernel/intern/cloth.c +++ b/source/blender/blenkernel/intern/cloth.c @@ -132,6 +132,8 @@ void cloth_init(ClothModifierData *clmd ) clmd->sim_parms->goalfrict = 0.0f; clmd->sim_parms->velocity_smooth = 0.0f; + clmd->sim_parms->voxel_res = 32; + if (!clmd->sim_parms->effector_weights) clmd->sim_parms->effector_weights = BKE_add_effector_weights(NULL); |