Cleanup: use normalize_v#_length
[blender.git] / source / blender / render / intern / source / multires_bake.c
index 8c6d9c5f951f5630ed4503c329290652604c369a..fba5836ac32a6b0ed7fe3373e8a790752d7e829d 100644 (file)
@@ -864,8 +864,7 @@ static void apply_tangmat_callback(DerivedMesh *lores_dm, DerivedMesh *hires_dm,
                       lvl, lt, uv[0], uv[1], NULL, n);
 
        mul_v3_m3v3(vec, tangmat, n);
-       normalize_v3(vec);
-       mul_v3_fl(vec, 0.5);
+       normalize_v3_length(vec, 0.5);
        add_v3_v3(vec, tmp);
 
        if (ibuf->rect_float) {