diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-30 07:47:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-30 07:57:48 +0300 |
commit | 7a4353160cc5b5e71dde234c7db95302b4233918 (patch) | |
tree | 6ac463670249963b070173397d4ef899c99bf62c /release/scripts/startup | |
parent | ca93ebee7fe49c9b89b748e404b22b87c8eb2de0 (diff) |
Cloth: option to use dynamic base mesh
This adds the ability for cloth simulations to respect changes in the underlying mesh.
So you can for instance, animate shape keys, armatures, or add any deformation modifiers (above the cloth modifier).
This is mainly useful for (but not limited to) cartoon animations,
where your character might stretch or change shape, and you want the clothes to follow accordingly.
D1903 by @LucaRood
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_cloth.py | 3 |
1 files changed, 3 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 37a0390b11d..d3b2a9fd149 100644 --- a/release/scripts/startup/bl_ui/properties_physics_cloth.py +++ b/release/scripts/startup/bl_ui/properties_physics_cloth.py @@ -114,10 +114,13 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, Panel): col = split.column() + col.prop(cloth, "use_dynamic_mesh", text="Dynamic Mesh") + key = ob.data.shape_keys if key: sub = col.column() + sub.active = not cloth.use_dynamic_mesh sub.label(text="Rest Shape Key:") sub.prop_search(cloth, "rest_shape_key", key, "key_blocks", text="") |