Cleanup: warnings (clang)
[blender.git] / source / blender / bmesh / tools / bmesh_bevel.c
index f0c2a343d4a5498741734e92c7a6da579e574647..e48616ea2312728d173e9fa5cbff6f27b5a8e4f8 100644 (file)
@@ -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);
                }