diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-30 17:33:04 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-08 18:44:46 +0300 |
commit | 10ec207a6b1fdefe247b3e092d0b62a373ab1464 (patch) | |
tree | e214d53e0cfadf2687479c1574149329b6c95fd2 /source/blender/blenkernel/BKE_subdiv_ccg.h | |
parent | 52c02dc311714c47fd41cd585db4ce57997ee837 (diff) |
Sculpt: support automasking, pose and mask expand for multires
These were the last remaining new sculpt tools that did not support multires.
Performance could be improved still, but it should work.
Fixes T68899
Diffstat (limited to 'source/blender/blenkernel/BKE_subdiv_ccg.h')
-rw-r--r-- | source/blender/blenkernel/BKE_subdiv_ccg.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_subdiv_ccg.h b/source/blender/blenkernel/BKE_subdiv_ccg.h index 7c0963680c5..409a0d1232b 100644 --- a/source/blender/blenkernel/BKE_subdiv_ccg.h +++ b/source/blender/blenkernel/BKE_subdiv_ccg.h @@ -265,6 +265,7 @@ void BKE_subdiv_ccg_topology_counters(const SubdivCCG *subdiv_ccg, typedef struct SubdivCCGNeighbors { SubdivCCGCoord *coords; int size; + int num_duplicates; SubdivCCGCoord coords_fixed[256]; } SubdivCCGNeighbors; @@ -288,9 +289,13 @@ bool BKE_subdiv_ccg_check_coord_valid(const SubdivCCG *subdiv_ccg, const SubdivC /* Get actual neighbors of the given coordinate. * * SubdivCCGNeighbors.neighbors must be freed if it is not equal to - * SubdivCCGNeighbors.fixed_neighbors. */ + * SubdivCCGNeighbors.fixed_neighbors. + * + * If include_duplicates is true, vertices in other grids that match + * the current vertex are added at the end of the coords array. */ void BKE_subdiv_ccg_neighbor_coords_get(const SubdivCCG *subdiv_ccg, const SubdivCCGCoord *coord, + const bool include_duplicates, SubdivCCGNeighbors *r_neighbors); #endif /* __BKE_SUBDIV_CCG_H__ */ |