diff options
author | Joseph Eagar <joeedh@gmail.com> | 2021-04-07 11:20:21 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2021-04-07 11:20:21 +0300 |
commit | 55415cd62a78f712329574bae3b6e43657d690de (patch) | |
tree | a4704257222508fcdb4f9ebf6c155141f2897adf /source/blender/makesdna/DNA_meshdata_types.h | |
parent | 8aac19cab50020670217561de66ecfc3e936502f (diff) |
* Layer brush now supports dyntopo.
- To do this I made a little API to make scratch
customdata layers: SCULPT_dyntopo_[ensure/get]_templayer.
Takes a customdata type and a layer name (e.g.
'__dyntopo_bleh") and returns a customdata offset.
- Note that I also did this for the persistent base code.
* Added a macro to check if a tool supports splitting the PBVH
during a stroke, DYNTOPO_HAS_DYNAMIC_SPLIT. It is in sculpt_intern.h
(for now) to avoid the enormous amount of recompiling that is
triggered if DNA_brush_enum.h is modified.
* TODO: Right now the undo code resets original vertex coordinates for
bmesh PBVH. This means tools that rely on original data (sharp and
layer) can't split the pbvh during the stroke, since that will
allocate new undo nodes and reset original coords.
The solution is to move the original data API entirely out of the undo
code.
Diffstat (limited to 'source/blender/makesdna/DNA_meshdata_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_meshdata_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h index 4acf53bb710..6b0985b850f 100644 --- a/source/blender/makesdna/DNA_meshdata_types.h +++ b/source/blender/makesdna/DNA_meshdata_types.h @@ -536,6 +536,7 @@ typedef struct MDynTopoVert { float origmask; float curvature_dir[3]; + int _pad[1]; } MDynTopoVert; /*MDynTopoVert->flag*/ |