diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-20 10:21:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-20 10:21:50 +0300 |
commit | d9b1592c886783fbb1c39a016a91b403db8e8660 (patch) | |
tree | 993804a31a166f0b2199145884fe1dd943fed6bd /source/blender/blenkernel/intern | |
parent | 3462b4c7aeeab656cc0e97e5d20061a31e0d17c4 (diff) |
Cleanup: make BKE_mesh_loops_to_tessdata a static function
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/mesh_tessellate.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index ccf002b4c6f..b1bb8b9715e 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -1970,7 +1970,7 @@ const CustomData_MeshMasks CD_MASK_BMESH = { CD_MASK_SCULPT_FACE_SETS), }; /** - * cover values copied by #BKE_mesh_loops_to_tessdata + * cover values copied by #mesh_loops_to_tessdata */ const CustomData_MeshMasks CD_MASK_FACECORNERS = { .vmask = 0, diff --git a/source/blender/blenkernel/intern/mesh_tessellate.c b/source/blender/blenkernel/intern/mesh_tessellate.c index 797db4df97f..213f2929d63 100644 --- a/source/blender/blenkernel/intern/mesh_tessellate.c +++ b/source/blender/blenkernel/intern/mesh_tessellate.c @@ -62,12 +62,12 @@ * \note when mface is not NULL, mface[face_index].v4 * is used to test quads, else, loopindices[face_index][3] is used. */ -void BKE_mesh_loops_to_tessdata(CustomData *fdata, - CustomData *ldata, - MFace *mface, - const int *polyindices, - uint (*loopindices)[4], - const int num_faces) +static void mesh_loops_to_tessdata(CustomData *fdata, + CustomData *ldata, + MFace *mface, + const int *polyindices, + uint (*loopindices)[4], + const int num_faces) { /* NOTE(mont29): performances are sub-optimal when we get a NULL #MFace, * we could be ~25% quicker with dedicated code. @@ -391,9 +391,9 @@ int BKE_mesh_tessface_calc_ex(CustomData *fdata, * Currently, our tfaces' fourth vertex index might be 0 even for a quad. * However, we know our fourth loop index is never 0 for quads * (because they are sorted for polygons, and our quads are still mere copies of their polygons). - * So we pass NULL as MFace pointer, and #BKE_mesh_loops_to_tessdata + * So we pass NULL as MFace pointer, and #mesh_loops_to_tessdata * will use the fourth loop index as quad test. */ - BKE_mesh_loops_to_tessdata(fdata, ldata, NULL, mface_to_poly_map, lindices, totface); + mesh_loops_to_tessdata(fdata, ldata, NULL, mface_to_poly_map, lindices, totface); /* NOTE: quad detection issue - fourth vertidx vs fourth loopidx: * ...However, most TFace code uses 'MFace->v4 == 0' test to check whether it is a tri or quad. |