Blender Git Loki

Git Commits -> Revision 47f4663

Revision 47f4663 by Pablo Dobarro (master)
April 14, 2020, 19:07 (GMT)
Sculpt: New Layer Brush

The Layer brush was in Blender before 2.81, when the sculpt API was
introduced. It had a huge amount of bugs and glitches which made it
almost unusable for anything but the most trivial cases. Also, it needed
some hacks in the code just to support the persistent base.

The brush was completely rewritten using the Sculpt API. It fulfills the
same use case as the old one, but it has:
- All previous artifacts fixed
- Simpler code
- Persistent base now works with multires thanks to the sculpt API
- Small cursor widget to preview the layer height
- More controllable and smoother strength and deformation
- More correct masking support
- More predictable invert support. When using persistent base, the brush invert mode resets to layer height 0, instead of jumping from +1 to -1. The brush can still be inverted in the brush direction property.

Reviewed By: jbakker

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

Commit Details:

Full Hash: 47f46637be1bef9672ede0ab6795a7e9ea97fc6a
Parent Commit: 7dd8c88
Lines Changed: +159, -170

12 Modified Paths:

/release/scripts/startup/bl_ui/properties_paint_common.py (+4, -13) (Diff)
/source/blender/blenkernel/BKE_paint.h (+10, -3) (Diff)
/source/blender/blenkernel/BKE_pbvh.h (+0, -9) (Diff)
/source/blender/blenkernel/intern/brush.c (+6, -0) (Diff)
/source/blender/blenkernel/intern/paint.c (+7, -20) (Diff)
/source/blender/blenkernel/intern/pbvh.c (+0, -29) (Diff)
/source/blender/editors/sculpt_paint/paint_cursor.c (+43, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+85, -91) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+3, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt_undo.c (+0, -4) (Diff)
/source/blender/makesdna/DNA_brush_types.h (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021