From c2f0522760b24b746b1f1686f91198c643b6b4c2 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Tue, 18 Aug 2020 15:11:51 +0200 Subject: Sculpt: Enable Cloth Simulation Target for Pose and Boundary This adds a new brush property called "Deformation Target" which controls how the brush deformations is going to affect the mesh data. By default is set to Geometry, which makes the brushes displace the vertices. When set to Cloth Simulation, the deformation of the brush is applied to the cloth solver constraints, so the simulation is responsible to apply the final deformation. This allows to add cloth simulation effects to other sculpt tools with minor modifications to their code. This patch enables Cloth Simulation deformation target for Pose and Boundary brushes, which are tools that are already designed to work in low poly counts and produce large deformations. This allows creating the most common cloth effects, like bending and compressing folds, without relying on collisions. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8578 --- release/scripts/startup/bl_ui/properties_paint_common.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'release/scripts/startup/bl_ui/properties_paint_common.py') diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index 5f15fa00562..a20de3e29db 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -640,6 +640,8 @@ def brush_settings(layout, context, brush, popover=False): layout.separator() elif sculpt_tool == 'POSE': + layout.separator() + layout.prop(brush, "deform_target") layout.separator() layout.prop(brush, "pose_deform_type") layout.prop(brush, "pose_origin_type") @@ -721,6 +723,8 @@ def brush_settings(layout, context, brush, popover=False): col.prop(brush, "smear_deform_type") elif sculpt_tool == 'BOUNDARY': + layout.prop(brush, "deform_target") + layout.separator() col = layout.column() col.prop(brush, "boundary_deform_type") col.prop(brush, "boundary_falloff_type") -- cgit v1.2.3