Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-05-05 23:29:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-05-05 23:34:25 +0300
commitd12378da11f65187fab5e98d4c5ade568c781412 (patch)
tree3e2c648d1fbacb5ff7cf010db5afaba4393c8c1c /source/blender/editors/transform
parentee5eb2a26a1f66d876d876c751d1076e1748ece6 (diff)
Cleanup: style
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform_snap_object.c15
1 files changed, 8 insertions, 7 deletions
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);