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 /release/scripts/startup/bl_ui | |
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 'release/scripts/startup/bl_ui')
-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 1921521669e..d5ac140dc98 100644 --- a/release/scripts/startup/bl_ui/properties_physics_cloth.py +++ b/release/scripts/startup/bl_ui/properties_physics_cloth.py @@ -178,6 +178,7 @@ class PHYSICS_PT_cloth_pressure(PhysicButtonsPanel, Panel): cloth = context.cloth.settings md = context.cloth + ob = context.object layout.active = cloth.use_pressure and cloth_panel_enabled(md) @@ -196,6 +197,9 @@ class PHYSICS_PT_cloth_pressure(PhysicButtonsPanel, Panel): col = flow.column() col.prop(cloth, "pressure_factor", text="Factor") + col = flow.column() + col.prop_search(cloth, "vertex_group_pressure", ob, "vertex_groups", text="Vertex Group") + class PHYSICS_PT_cloth_cache(PhysicButtonsPanel, Panel): bl_label = "Cache" |