diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/bmesh/operators/bmo_wireframe.c | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/bmesh/operators/bmo_wireframe.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_wireframe.c | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/source/blender/bmesh/operators/bmo_wireframe.c b/source/blender/bmesh/operators/bmo_wireframe.c index dcce9dbfb01..dc8a8d03eef 100644 --- a/source/blender/bmesh/operators/bmo_wireframe.c +++ b/source/blender/bmesh/operators/bmo_wireframe.c @@ -31,32 +31,36 @@ #include "intern/bmesh_operators_private.h" /* own include */ - void bmo_wireframe_exec(BMesh *bm, BMOperator *op) { - const float offset = BMO_slot_float_get(op->slots_in, "thickness"); - const float offset_fac = BMO_slot_float_get(op->slots_in, "offset"); - const bool use_replace = BMO_slot_bool_get(op->slots_in, "use_replace"); - const bool use_boundary = BMO_slot_bool_get(op->slots_in, "use_boundary"); - const bool use_even_offset = BMO_slot_bool_get(op->slots_in, "use_even_offset"); - const bool use_relative_offset = BMO_slot_bool_get(op->slots_in, "use_relative_offset"); - const bool use_crease = BMO_slot_bool_get(op->slots_in, "use_crease"); - const float crease_weight = BMO_slot_float_get(op->slots_in, "crease_weight"); - - BM_mesh_elem_hflag_disable_all(bm, BM_EDGE | BM_FACE, BM_ELEM_TAG, false); - BMO_slot_buffer_hflag_enable(bm, op->slots_in, "faces", BM_FACE, BM_ELEM_TAG, false); - - BM_mesh_wireframe( - bm, - offset, offset_fac, 0.0f, - use_replace, - use_boundary, - use_even_offset, use_relative_offset, - use_crease, crease_weight, - /* dummy vgroup */ - -1, false, - 0, MAXMAT, - true); - - BMO_slot_buffer_from_enabled_hflag(bm, op, op->slots_out, "faces.out", BM_FACE, BM_ELEM_TAG); + const float offset = BMO_slot_float_get(op->slots_in, "thickness"); + const float offset_fac = BMO_slot_float_get(op->slots_in, "offset"); + const bool use_replace = BMO_slot_bool_get(op->slots_in, "use_replace"); + const bool use_boundary = BMO_slot_bool_get(op->slots_in, "use_boundary"); + const bool use_even_offset = BMO_slot_bool_get(op->slots_in, "use_even_offset"); + const bool use_relative_offset = BMO_slot_bool_get(op->slots_in, "use_relative_offset"); + const bool use_crease = BMO_slot_bool_get(op->slots_in, "use_crease"); + const float crease_weight = BMO_slot_float_get(op->slots_in, "crease_weight"); + + BM_mesh_elem_hflag_disable_all(bm, BM_EDGE | BM_FACE, BM_ELEM_TAG, false); + BMO_slot_buffer_hflag_enable(bm, op->slots_in, "faces", BM_FACE, BM_ELEM_TAG, false); + + BM_mesh_wireframe(bm, + offset, + offset_fac, + 0.0f, + use_replace, + use_boundary, + use_even_offset, + use_relative_offset, + use_crease, + crease_weight, + /* dummy vgroup */ + -1, + false, + 0, + MAXMAT, + true); + + BMO_slot_buffer_from_enabled_hflag(bm, op, op->slots_out, "faces.out", BM_FACE, BM_ELEM_TAG); } |