Blender Git Loki

Git Commits -> Revision 6ee6a42

Revision 6ee6a42 by Pablo Dobarro (master)
February 11, 2020, 19:07 (GMT)
Sculpt: Clay Strips Tip Roundness property

This patch allow to change the brush tip shape between a square and a
circle using a brush property.

After this change we are no longer testing the distance against a cube
(the Z axis is not used). I did not test this in depth, but if it does
not produce any artifacts I think we can keep it this way instead of
adding more complexity to the code.

In this new distance test the brush falloff is only applied on the
rounded parts of the square to avoid sharp artifacts in the
diagonals. Because of this, the round version is much softer than
the square one. The planned hardness property will fix this, but
this can also be avoided by setting the fallof to a custom curve.

Reviewed By: jbakker

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

Commit Details:

Full Hash: 6ee6a42d10e3c1c0868d1f038401d525264a7e24
Parent Commit: 0ab7e32
Lines Changed: +60, -14

8 Modified Paths:

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