Blender Git Loki
Git Commits -> Revision 7315098
September 20, 2021, 10:01 (GMT) |
Sculpt: More brush channel stuff * The input device curves for brush channels now use a copy on write mechanism. + It's based on a global cache of curves. The alternative is to reference count BrushChannels, which I also implemented then abandoned. + Profiling showed that copying CurveMapping instances was actually a problem. * Lots of small fixes to the old<-> new brush setting conversion code; * Brush commands can now, sortof, have individual spacing. The default brush spacing still acts as a minimum though. * Added a BLI_ghash_lookup_p_ex method that returns the key ptr inside the ghash (it returns the actual key, not a pointer to Entry.key). * Added a general 1d CurveMapping preset operator that uses an RNA path to get the curve. |
Commit Details:
Full Hash: 73150981c8a5f17b17e5e370e28287f5f0b96b86
Parent Commit: c9f1e10
Lines Changed: +865, -196
22 Modified Paths:
/release/scripts/startup/bl_ui/properties_paint_common.py (+35, -13) (Diff)
/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+5, -2) (Diff)
/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_brush_engine.h (+20, -7) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+2, -0) (Diff)
/source/blender/blenkernel/intern/brush.c (+0, -23) (Diff)
/source/blender/blenkernel/intern/brush_engine.c (+312, -73) (Diff)
/source/blender/blenkernel/intern/brush_engine_presets.c (+200, -43) (Diff)
/source/blender/blenkernel/intern/colortools.c (+19, -3) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -3) (Diff)
/source/blender/blenlib/BLI_ghash.h (+16, -0) (Diff)
/source/blender/blenlib/intern/BLI_ghash.c (+25, -0) (Diff)
/source/blender/blenloader/intern/versioning_300.c (+24, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_intern.h (+1, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+1, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_utils.c (+127, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+60, -21) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_color_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_sculpt_brush_types.h (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_brush_engine.c (+5, -4) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+3, -0) (Diff)
/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+5, -2) (Diff)
/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_brush_engine.h (+20, -7) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+2, -0) (Diff)
/source/blender/blenkernel/intern/brush.c (+0, -23) (Diff)
/source/blender/blenkernel/intern/brush_engine.c (+312, -73) (Diff)
/source/blender/blenkernel/intern/brush_engine_presets.c (+200, -43) (Diff)
/source/blender/blenkernel/intern/colortools.c (+19, -3) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -3) (Diff)
/source/blender/blenlib/BLI_ghash.h (+16, -0) (Diff)
/source/blender/blenlib/intern/BLI_ghash.c (+25, -0) (Diff)
/source/blender/blenloader/intern/versioning_300.c (+24, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_intern.h (+1, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+1, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_utils.c (+127, -0) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+60, -21) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_color_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_sculpt_brush_types.h (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_brush_engine.c (+5, -4) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+3, -0) (Diff)