Page MenuHome

Sculpt: Hardness brush property

Authored by Pablo Dobarro (pablodp606) on Feb 20 2020, 9:44 PM.
"Like" token, awarded by TheCharacterhero."Love" token, awarded by gritche."Like" token, awarded by Shimoon."Love" token, awarded by kynu."Love" token, awarded by ixd."Like" token, awarded by Ztreem."Love" token, awarded by andruxa696."Yellow Medal" token, awarded by MetinSeven."Love" token, awarded by RodDavis."100" token, awarded by Frozen_Death_Knight."Love" token, awarded by bnzs."Like" token, awarded by Constantina32."Love" token, awarded by Brandon777.



The hardness property moves the brush falloff towards the edges, making
the brush sharper.

This should be the intended way to control the brush falloff instead of
tweaking the falloff curve manually, as it can be mapped to pressure to
make the falloff variable during the stroke.
It is also a good idea to show in the UI that the custom curves is an
advance features and it should almost never be modified when sculpting/
painting unless you want to create some advanced effects. By modifying
the curves freely it is really easy to break the brushes and make them
produce artifacts. This needs to be done in a later after merging the
pending projects to reorganize all the brush properties accordingly.

This was already implemented in the sculpt vertex colors patch, but it
is better to merge this now independetly as it is needed for clay strips
and some other brushes.

Diff Detail

rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) added inline comments.
4506 ↗(On Diff #21934)

Aren't new properties always zero-initialized by default? I think I read that somewhere in the past.
And if not, why is br->ob_mode & OB_MODE_SCULPT necessary? Wouldn't it be better to initialize the property in any case?

  • Remove versioning code It is already in DNA_brush_defaults, so it should not be necessary.
This revision is now accepted and ready to land.Mar 1 2020, 2:12 PM
This revision was automatically updated to reflect the committed changes.