diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-11-06 16:05:32 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:06 +0300 |
commit | bf96400558db9e8e79a00a73eba99a1ca008231f (patch) | |
tree | 85af516b6ded76da7d710b40eee03012ddc6dc41 /source/blender/makesdna/DNA_cloth_types.h | |
parent | 8dbb6f0d5dd923c57af74f16bbb0e86333dd0a51 (diff) |
Use a fixed, uniform cell size for hair continuum grids.
This is a bit more awkward for artists to use, but necessary for
a stable solution of the hair continuum calculation. The grid size is
defined by the user, the extent of the grid is then calculated based on
the hair geometry. A hard upper limit prevents bad memory allocation
in case too small values are entered.
Conflicts:
source/blender/physics/intern/BPH_mass_spring.cpp
Diffstat (limited to 'source/blender/makesdna/DNA_cloth_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_cloth_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_cloth_types.h b/source/blender/makesdna/DNA_cloth_types.h index c32f6dbfbe5..f4d8faa7958 100644 --- a/source/blender/makesdna/DNA_cloth_types.h +++ b/source/blender/makesdna/DNA_cloth_types.h @@ -80,7 +80,7 @@ typedef struct ClothSimSettings { * should really be separate, this struct is a horrible mess already */ float bending_damping; /* damping of bending springs */ - int voxel_res; /* resolution of voxel grid for interaction */ + float voxel_cell_size; /* size of voxel grid cells for continuum dynamics */ int pad; int stepsPerFrame; /* Number of time steps per frame. */ |