Blender Git Commit Log

Git Commits -> Revision 07be162

Revision 07be162 by Joseph Eagar (sculpt-dev)
October 16, 2021, 08:16 (GMT)
Sculpt: brush input mappings improvements

Cleaned up brush channel input mappings:

* BrushMapping now stores .min/.max
* BrushMappingDef .min/max now sets BrushMapping min/max
instead of changing the curve preset bounds.
* Fixed how BKE_brush_channel_eval_mappings evaluates
the mappings stack. Mappings now blend directly
with channel value instead of accumulating a multiplier
that's applied at the end.
* Consequently, BrushMapping->blendmode now defaults to MA_BLEND_MULT.
* Exposed BrushMapping->blendmode in RNA and UI.
Note that it doesn't support every MA_BLEND_ type,
it provides its own EnumPropertyItem list of
supported blendmodes.
* Added a random input method, BRUSH_MAPPING_RANDOM.
* Fixed BRUSH_MAPPING_ANGLE being given data in the wrong
range (all channels should be 0..1, not -pi..pi).

Other changes:
* Improved the uv smooth brush. It's still hidden behind an
experimental pref.
* Added a SCULPT_temp_customlayer_has function to check if a temporary
customdata attribute layer exists.
* Fixed a bunch of broken sliders in the paint_toolsystem_common.py.

Commit Details:

Full Hash: 07be162dd54323c4ffcebc735617dc253183199d
Parent Commit: 673e1fb
Lines Changed: +344, -95

12 Modified Paths:

/release/scripts/startup/bl_ui/properties_paint_common.py (+36, -26) (Diff)
/source/blender/blenkernel/BKE_brush_engine.h (+4, -2) (Diff)
/source/blender/blenkernel/intern/brush_channel_define.h (+4, -0) (Diff)
/source/blender/blenkernel/intern/brush_engine.c (+30, -12) (Diff)
/source/blender/blenkernel/intern/brush_engine_presets.c (+59, -3) (Diff)
/source/blender/blenloader/intern/versioning_300.c (+34, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+46, -30) (Diff)
/source/blender/editors/sculpt_paint/sculpt_dyntopo.c (+72, -7) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+5, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt_paint_color.c (+16, -13) (Diff)
/source/blender/makesdna/DNA_sculpt_brush_types.h (+5, -2) (Diff)
/source/blender/makesrna/intern/rna_brush_engine.c (+33, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021