diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-06 16:06:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-06 16:34:48 +0300 |
commit | e305560f13c3c67b048dc3889c7797eae2e345c4 (patch) | |
tree | b3593db52da67e738fbfe592507a517b9ec35f53 /source/blender/modifiers/intern/MOD_surfacedeform.c | |
parent | f10a88ae8d22cbf570956fd18ff60ef8e84fdd85 (diff) |
Cleanup: add trailing commas to structs
Needed for clang formatting to workaround bug/limit, see: T53211
Diffstat (limited to 'source/blender/modifiers/intern/MOD_surfacedeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_surfacedeform.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/source/blender/modifiers/intern/MOD_surfacedeform.c b/source/blender/modifiers/intern/MOD_surfacedeform.c index d4781e419cf..dd9e11f86c5 100644 --- a/source/blender/modifiers/intern/MOD_surfacedeform.c +++ b/source/blender/modifiers/intern/MOD_surfacedeform.c @@ -269,7 +269,7 @@ BLI_INLINE void sortPolyVertsTri(unsigned int *indices, const MLoop * const mloo BLI_INLINE unsigned int nearestVert(SDefBindCalcData * const data, const float point_co[3]) { - BVHTreeNearest nearest = {.dist_sq = FLT_MAX, .index = -1}; + BVHTreeNearest nearest = { .dist_sq = FLT_MAX, .index = -1, }; const MPoly *poly; const MEdge *edge; const MLoop *loop; @@ -976,18 +976,20 @@ static bool surfacedeformBind( smd->numverts = numverts; smd->numpoly = tnumpoly; - SDefBindCalcData data = {.treeData = &treeData, - .vert_edges = vert_edges, - .edge_polys = edge_polys, - .mpoly = mpoly, - .medge = medge, - .mloop = mloop, - .looptri = BKE_mesh_runtime_looptri_ensure(target), - .targetCos = MEM_malloc_arrayN(tnumverts, sizeof(float[3]), "SDefTargetBindVertArray"), - .bind_verts = smd->verts, - .vertexCos = vertexCos, - .falloff = smd->falloff, - .success = MOD_SDEF_BIND_RESULT_SUCCESS}; + SDefBindCalcData data = { + .treeData = &treeData, + .vert_edges = vert_edges, + .edge_polys = edge_polys, + .mpoly = mpoly, + .medge = medge, + .mloop = mloop, + .looptri = BKE_mesh_runtime_looptri_ensure(target), + .targetCos = MEM_malloc_arrayN(tnumverts, sizeof(float[3]), "SDefTargetBindVertArray"), + .bind_verts = smd->verts, + .vertexCos = vertexCos, + .falloff = smd->falloff, + .success = MOD_SDEF_BIND_RESULT_SUCCESS, + }; if (data.targetCos == NULL) { modifier_setError((ModifierData *)smd, "Out of memory"); |