Blender Git Loki

Git Commits -> Revision 438bd82

Revision 438bd82 by Pablo Dobarro (master)
June 30, 2020, 15:43 (GMT)
Sculpt: Pose Brush option to affect loose parts

This option allows posing meshes with different disconnected elements
using the Pose Brush.

This is achieved by doing the following:
- Creating an ID per vertex that stores the connected component of that vertex.
- By using those IDs, one fake topology connection is created per vertex to the nearest vertex in a different ID. The maximum distance to create that connection is determined by the "Max Element Distance" property. These fake connectivity neighbors are used in the Sculpt API functions iterators, so all the algorithms of the Pose Brush can run without modifications as if everything was part of the same mesh.

In order to make this work, the "Connected only" property of the Pose Brush needs to be disabled. This will add an extra performance cost to the Pose Brush and its preview. To achieve optimal results, max element distance should be as low as possible.

Reviewed By: sergey, campbellbarton

Differential Revision: https://developer.blender.org/D7282

Commit Details:

Full Hash: 438bd823714a24475962ab89ad38b0d7e36349fe
Parent Commit: 6ac235a
Lines Changed: +343, -5

11 Modified Paths:

/release/scripts/startup/bl_ui/properties_paint_common.py (+4, -0) (Diff)
/source/blender/blenkernel/BKE_paint.h (+19, -0) (Diff)
/source/blender/blenkernel/intern/brush.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/paint.c (+3, -0) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+8, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+262, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+9, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt_pose.c (+17, -3) (Diff)
/source/blender/makesdna/DNA_brush_defaults.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_brush_types.h (+5, -1) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+13, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021