diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-30 07:14:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-30 07:15:05 +0300 |
commit | 543ddbe6bfa8072b4c09ccc9abe27237d3598db5 (patch) | |
tree | 3d7ca08c1c16389e803721597817f11c53325523 /source/blender/bmesh/tools | |
parent | 266b1e2cdbc19466ac452cc3cb08273d6f37b341 (diff) |
Cleanup: warnings (clang)
Diffstat (limited to 'source/blender/bmesh/tools')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bevel.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index f0c2a343d4a..e48616ea231 100644 --- a/source/blender/bmesh/tools/bmesh_bevel.c +++ b/source/blender/bmesh/tools/bmesh_bevel.c @@ -1741,9 +1741,8 @@ static void bevel_harden_normals_mode(BevelParams *bp, BevVert *bv, BMOperator * /* Set normals.out for vertices as computed earlier */ if (BMO_slot_map_contains(nslot, bcur->nv.v) != true) { - float(*vert_normal) = MEM_callocN(sizeof(*vert_normal) * 3, __func__); - add_v3_v3(vert_normal, n_final); - normalize_v3(vert_normal); + float *vert_normal = MEM_mallocN(sizeof(*vert_normal) * 3, __func__); + normalize_v3_v3(vert_normal, n_final); BMO_slot_map_insert(op, nslot, bcur->nv.v, vert_normal); } |