This allows to use pen pressure modulation in hardness, wet mix, wet
persistence, flow and density, as well as inverting the modulation (more
pressure, less density...). With this, it is possible to create brushes
that mix paint or apply a new color based on the pressure.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- svc-pen-pressure-1 (branched from master)
- Build Status
Buildable 8959 Build 8959: arc lint + arc unit
Event Timeline
Comment Actions
@Campbell Barton (campbellbarton), mind having a second look at the RNA?
| source/blender/editors/sculpt_paint/sculpt.c | ||
|---|---|---|
| 6638 | Make variable more local. | |
| source/blender/makesrna/intern/rna_brush.c | ||
| 2274 | use_hardness_pressure, makes it closer to hardness in auto-completion. Same applies to the rest of this patch section. | |
| 2281 | Don't use use_ prefix for invert. The RNA is not very consistent in this, but this is very exceptional to see use_invert_foo, and the RNA cleaner considers invert a valid prefix. Same applies to the rest of this patch section. | |
Comment Actions
Wrap the properties into a structure, to make access more explicit that it is for paint brush.
Other than that have nothing from my side.
| source/blender/editors/sculpt_paint/sculpt_intern.h | ||
|---|---|---|
| 823–827 | struct {
float hardness;
float flow;
float wet_mix;
float wet_persistence;
float density;
} paint_brush; | |