diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2021-01-08 13:02:40 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2021-01-11 19:34:33 +0300 |
commit | e44e0e4e78bed21846c4c2455f81d678f61d212e (patch) | |
tree | 8d175701f8fbac1dc8f3aac62cbdaafa35a50b62 /release/scripts | |
parent | ac290bfbe434df43fea19f7130313a1769aefdad (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 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_cloth.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_cloth.py b/release/scripts/startup/bl_ui/properties_physics_cloth.py index 79089b7cb89..3a5ca1e04f5 100644 --- a/release/scripts/startup/bl_ui/properties_physics_cloth.py +++ b/release/scripts/startup/bl_ui/properties_physics_cloth.py @@ -345,6 +345,7 @@ class PHYSICS_PT_cloth_object_collision(PhysicButtonsPanel, Panel): cloth = context.cloth.collision_settings md = context.cloth + ob = context.object layout.active = cloth.use_collision and cloth_panel_enabled(md) @@ -357,6 +358,9 @@ class PHYSICS_PT_cloth_object_collision(PhysicButtonsPanel, Panel): col.prop(cloth, "impulse_clamp") col = flow.column() + col.prop_search(cloth, "vertex_group_object_collisions", ob, "vertex_groups", text="Vertex Group") + + col = flow.column() col.prop(cloth, "collection") |