From d12378da11f65187fab5e98d4c5ade568c781412 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 6 May 2016 06:29:39 +1000 Subject: Cleanup: style --- source/blender/editors/transform/transform_snap_object.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source/blender/editors/transform') diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c index 1b1c2c93951..ea34895d3f5 100644 --- a/source/blender/editors/transform/transform_snap_object.c +++ b/source/blender/editors/transform/transform_snap_object.c @@ -958,8 +958,9 @@ static bool snapEditMesh( hit.dist = local_depth; if (treedata->tree && - BLI_bvhtree_ray_cast(treedata->tree, ray_start_local, ray_normal_local, 0.0f, - &hit, treedata->raycast_callback, treedata) != -1) + BLI_bvhtree_ray_cast( + treedata->tree, ray_start_local, ray_normal_local, 0.0f, + &hit, treedata->raycast_callback, treedata) != -1) { hit.dist += len_diff; hit.dist /= local_scale; @@ -989,9 +990,9 @@ static bool snapEditMesh( nearest.index = -1; nearest.dist_sq = local_depth * local_depth; if (treedata->tree && - BLI_bvhtree_find_nearest_to_ray( - treedata->tree, ray_start_local, ray_normal_local, - &nearest, NULL, NULL) != -1) + BLI_bvhtree_find_nearest_to_ray( + treedata->tree, ray_start_local, ray_normal_local, + &nearest, NULL, NULL) != -1) { const BMVert *v = BM_vert_at_index(em->bm, nearest.index); retval = snapVertex( @@ -1009,8 +1010,8 @@ static bool snapEditMesh( BMEdge *eed = BM_edge_at_index(em->bm, i); if (!BM_elem_flag_test(eed, BM_ELEM_HIDDEN) && - !BM_elem_flag_test(eed->v1, BM_ELEM_SELECT) && - !BM_elem_flag_test(eed->v2, BM_ELEM_SELECT)) + !BM_elem_flag_test(eed->v1, BM_ELEM_SELECT) && + !BM_elem_flag_test(eed->v2, BM_ELEM_SELECT)) { short v1no[3], v2no[3]; normal_float_to_short_v3(v1no, eed->v1->no); -- cgit v1.2.3