Blender Git Commit Log

Git Commits -> Revision 71c9af7

Revision 71c9af7 by Joseph Eagar (sculpt-dev)
September 26, 2021, 22:11 (GMT)
Sculpt: Cleaned up custom customdata api

* Cleaned up the SculptCustomLayer API that is
used for custom data.
* Various SculptCustomLayer references are now maintained
in ss->custom_layers and are updated automatically when
the CD layout changes.
* PBVH_GRIDS now forcibly allocate custom layers in simple_array
mode (i.e. they don't allocated real customdata layers at all).
* SculptCustomLayers can optionally be preserved in the final mesh.
* Fixed handling of CD_TEMPORARY which was broken.
* The layer brush can now split the pbvh during use.
* Persistent base data is now saved as permanent CD layers (except
for PBVH_GRIDS). This is necessary for undo, if we want we can
add special code to remove them on exising sculpt mode.
* The layer brush now uses the SculptCustomLayer API instead of
having seperate bmesh and faces/grids implementations.

* In unrelated changes, fixed curve presets for clay brushes.
- Still need to implement stabilized input mappings, which the
clay thumb brush needs.

Commit Details:

Full Hash: 71c9af7eb583869153f7f8de795d618c9a125809
Parent Commit: 45f45d9
Lines Changed: +706, -520

20 Modified Paths:

/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+46, -5) (Diff)
/source/blender/blenkernel/BKE_brush_engine.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_paint.h (+29, -10) (Diff)
/source/blender/blenkernel/intern/brush_engine.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/brush_engine_presets.c (+65, -15) (Diff)
/source/blender/blenkernel/intern/customdata.c (+16, -17) (Diff)
/source/blender/blenkernel/intern/paint.c (+16, -2) (Diff)
/source/blender/blenloader/intern/versioning_300.c (+0, -57) (Diff)
/source/blender/bmesh/intern/bmesh_interp.c (+4, -1) (Diff)
/source/blender/bmesh/intern/bmesh_mesh_convert.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+400, -270) (Diff)
/source/blender/editors/sculpt_paint/sculpt_automasking.c (+5, -4) (Diff)
/source/blender/editors/sculpt_paint/sculpt_cloth.c (+12, -7) (Diff)
/source/blender/editors/sculpt_paint/sculpt_dyntopo.c (+23, -90) (Diff)
/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+43, -28) (Diff)
/source/blender/editors/sculpt_paint/sculpt_smooth.c (+12, -6) (Diff)
/source/blender/editors/sculpt_paint/sculpt_undo.c (+5, -3) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_sculpt_paint.c (+23, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021