Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Fri, 8 Mar 2019 06:16:30 +0000 (17:16 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 8 Mar 2019 06:16:30 +0000 (17:16 +1100)
source/blender/modifiers/intern/MOD_bevel.c
source/blender/modifiers/intern/MOD_decimate.c
source/blender/modifiers/intern/MOD_edgesplit.c
source/blender/modifiers/intern/MOD_mirror.c
source/blender/modifiers/intern/MOD_triangulate.c
source/blender/modifiers/intern/MOD_wireframe.c

index 3450e74534137c8a2832e34025f8c17fcf5fb6da..6e1dd9ed45d9b7d751ee5b3e91b9956a2f87a8b7 100644 (file)
@@ -117,7 +117,7 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
                    .use_shapekey = false,
                    .active_shapekey = 0,
                     /* XXX We probably can use CD_MASK_BAREMESH_ORIGDINDEX here instead (also for other modifiers cases)? */
-                   .cd_mask_extra = {.vmask=CD_MASK_ORIGINDEX, .emask=CD_MASK_ORIGINDEX, .pmask=CD_MASK_ORIGINDEX},
+                   .cd_mask_extra = {.vmask = CD_MASK_ORIGINDEX, .emask = CD_MASK_ORIGINDEX, .pmask = CD_MASK_ORIGINDEX},
                });
 
        if ((bmd->lim_flags & MOD_BEVEL_VGROUP) && bmd->defgrp_name[0])
index 52289ef107e536d48e9c1109fb49e5fe53fe65fc..0ca6111c41ad9fe7054d1782abcbe4ae588bcb70 100644 (file)
@@ -163,7 +163,7 @@ static Mesh *applyModifier(
                &(struct BMeshCreateParams){0},
                &(struct BMeshFromMeshParams){
                    .calc_face_normal = calc_face_normal,
-                   .cd_mask_extra = {.vmask=CD_MASK_ORIGINDEX, .emask=CD_MASK_ORIGINDEX, .pmask=CD_MASK_ORIGINDEX},
+                   .cd_mask_extra = {.vmask = CD_MASK_ORIGINDEX, .emask = CD_MASK_ORIGINDEX, .pmask = CD_MASK_ORIGINDEX},
                });
 
        switch (dmd->mode) {
index 70c1ec5a59bac771f3340cdfacdadcc8365bda95..a7b980494b35901f9d3ff4efcd2c722710c4cce4 100644 (file)
@@ -60,7 +60,7 @@ static Mesh *doEdgeSplit(Mesh *mesh, EdgeSplitModifierData *emd)
                    .add_key_index = false,
                    .use_shapekey = false,
                    .active_shapekey = 0,
-                   .cd_mask_extra = {.vmask=CD_MASK_ORIGINDEX, .emask=CD_MASK_ORIGINDEX, .pmask=CD_MASK_ORIGINDEX},
+                   .cd_mask_extra = {.vmask = CD_MASK_ORIGINDEX, .emask = CD_MASK_ORIGINDEX, .pmask = CD_MASK_ORIGINDEX},
                });
 
        if (do_split_angle) {
index cb4243a6150ef252b015e7323682e9d00d4270ed..c46445471dfe15b3b9bcb5f5a60374f1dcd86f58 100644 (file)
@@ -91,12 +91,12 @@ static Mesh *doBiscetOnMirrorPlane(
        BMVert *v, *v_next;
 
        bm = BKE_mesh_to_bmesh_ex(
-               mesh,
-               &(struct BMeshCreateParams){0},
-               &(struct BMeshFromMeshParams){
-                       .calc_face_normal = true,
-                       .cd_mask_extra = {.vmask=CD_MASK_ORIGINDEX, .emask=CD_MASK_ORIGINDEX, .pmask=CD_MASK_ORIGINDEX},
-               });
+               mesh,
+               &(struct BMeshCreateParams){0},
+               &(struct BMeshFromMeshParams){
+                   .calc_face_normal = true,
+                   .cd_mask_extra = {.vmask = CD_MASK_ORIGINDEX, .emask = CD_MASK_ORIGINDEX, .pmask = CD_MASK_ORIGINDEX},
+               });
 
        /* Define bisecting plane (aka mirror plane). */
        float plane[4];
index 1d28d28286babfd1d459f35d6dc204d890c463f5..802bde21b5c82b513e48e20e71db2fecfddd7b25 100644 (file)
@@ -40,7 +40,7 @@ static Mesh *triangulate_mesh(Mesh *mesh, const int quad_method, const int ngon_
        BMesh *bm;
        int total_edges, i;
        MEdge *me;
-       CustomData_MeshMasks cddata_masks = {.vmask=CD_MASK_ORIGINDEX, .emask=CD_MASK_ORIGINDEX, .pmask=CD_MASK_ORIGINDEX};
+       CustomData_MeshMasks cddata_masks = {.vmask = CD_MASK_ORIGINDEX, .emask = CD_MASK_ORIGINDEX, .pmask = CD_MASK_ORIGINDEX};
 
        bool keep_clnors = (flag & MOD_TRIANGULATE_KEEP_CUSTOMLOOP_NORMALS) != 0;
 
index b91362334566c0c0a7d34831d3134183ba029d38..2f70ab16cf894acfafce48118aab89a400cdf538 100644 (file)
@@ -69,7 +69,7 @@ static Mesh *WireframeModifier_do(WireframeModifierData *wmd, Object *ob, Mesh *
                    .add_key_index = false,
                    .use_shapekey = false,
                    .active_shapekey = 0,
-                   .cd_mask_extra = {.vmask=CD_MASK_ORIGINDEX, .emask=CD_MASK_ORIGINDEX, .pmask=CD_MASK_ORIGINDEX},
+                   .cd_mask_extra = {.vmask = CD_MASK_ORIGINDEX, .emask = CD_MASK_ORIGINDEX, .pmask = CD_MASK_ORIGINDEX},
                });
 
        BM_mesh_wireframe(