diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2019-12-04 13:24:46 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2019-12-04 13:30:14 +0300 |
commit | 541d0fdba61a9c99612f7532207d5ce704f10b43 (patch) | |
tree | accff9ec62ba963c29ffde53f3a5a52f3fcff58f /source/blender/blenkernel/BKE_cloth.h | |
parent | b3f388dca9e547c12db277b8422c620ca3b64eaa (diff) |
Add cloth pressure vertex group and unlock cloth shrink values range
Introduced a way to specify cloth pressure force influence with a vertex
group. This will allow users to only have pressure affect certain parts
of the mesh.
In addition to this, the "shrink factor" is now also unlocked to allow
negative values and thus allowing the cloth mesh to grow as well.
Reviewed By: Jaques Lucke
Differential Revision: http://developer.blender.org/D6347
Diffstat (limited to 'source/blender/blenkernel/BKE_cloth.h')
-rw-r--r-- | source/blender/blenkernel/BKE_cloth.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_cloth.h b/source/blender/blenkernel/BKE_cloth.h index 0543021afef..d59a81c1baf 100644 --- a/source/blender/blenkernel/BKE_cloth.h +++ b/source/blender/blenkernel/BKE_cloth.h @@ -113,8 +113,9 @@ typedef struct ClothVertex { float struct_stiff; float bend_stiff; float shear_stiff; - int spring_count; /* how many springs attached? */ - float shrink_factor; /* how much to shrink this cloth */ + int spring_count; /* how many springs attached? */ + float shrink_factor; /* how much to shrink this cloth */ + float pressure_factor; /* how much pressure should affect this vertex */ } ClothVertex; /** |