Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2021-01-08 13:02:40 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2021-01-11 19:34:33 +0300
commite44e0e4e78bed21846c4c2455f81d678f61d212e (patch)
tree8d175701f8fbac1dc8f3aac62cbdaafa35a50b62 /source/blender/makesdna
parentac290bfbe434df43fea19f7130313a1769aefdad (diff)
Cloth: add a vertex group setting to exclude from object collision.
This can be useful as a workaround on the boundary with the pinned vertices in some situations among other things, and completely copies the existing design of the self collision vertex group setting. Differential Revision: https://developer.blender.org/D10043
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_cloth_types.h6
-rw-r--r--source/blender/makesdna/DNA_modifier_defaults.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_cloth_types.h b/source/blender/makesdna/DNA_cloth_types.h
index 11993d95c2c..467174c4f32 100644
--- a/source/blender/makesdna/DNA_cloth_types.h
+++ b/source/blender/makesdna/DNA_cloth_types.h
@@ -240,9 +240,11 @@ typedef struct ClothCollSettings {
char _pad[4];
/** Only use colliders from this group of objects. */
struct Collection *group;
- /** Vgroup to paint which vertices are used for self collisions. */
+ /** Vgroup to paint which vertices are not used for self collisions. */
short vgroup_selfcol;
- char _pad2[6];
+ /** Vgroup to paint which vertices are not used for object collisions. */
+ short vgroup_objcol;
+ char _pad2[4];
/** Impulse clamp for object collisions. */
float clamp;
/** Impulse clamp for self collisions. */
diff --git a/source/blender/makesdna/DNA_modifier_defaults.h b/source/blender/makesdna/DNA_modifier_defaults.h
index fcb582ef837..a5466641be4 100644
--- a/source/blender/makesdna/DNA_modifier_defaults.h
+++ b/source/blender/makesdna/DNA_modifier_defaults.h
@@ -179,6 +179,7 @@
.loop_count = 2, \
.group = NULL, \
.vgroup_selfcol = 0, \
+ .vgroup_objcol = 0, \
.clamp = 0.0f, \
.self_clamp = 0.0f, \
}