diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-17 15:00:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-17 15:00:57 +0400 |
commit | 8f7f8d679ce54fe2fb3c51a10d1d8f1a53c548e5 (patch) | |
tree | ebfd8281795823048b78ce4dbc1cdf2708e29be0 /source/blender/editors/transform/transform_snap.c | |
parent | c3788b60f4af8ede604375e9f5275691bc7fa7f2 (diff) |
Style Cleanup: whitespace
Diffstat (limited to 'source/blender/editors/transform/transform_snap.c')
-rw-r--r-- | source/blender/editors/transform/transform_snap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index 59c16f61295..8283197c70b 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -397,7 +397,7 @@ void applyGridAbsolute(TransInfo *t) copy_v3_v3(iloc, td->ob->obmat[3]); } - mul_v3_v3fl(loc, iloc, 1.0f/grid_size); + mul_v3_v3fl(loc, iloc, 1.0f / grid_size); loc[0] = floorf(loc[0]); loc[1] = floorf(loc[1]); loc[2] = floorf(loc[2]); @@ -1441,7 +1441,7 @@ static bool snapCurve(short snap_mode, ARegion *ar, Object *ob, Curve *cu, float mul_mat3_m4_v3(imat, ray_normal_local); for (nu = (ob->mode == OB_MODE_EDIT ? cu->editnurb->nurbs.first : cu->nurb.first); nu; nu = nu->next) { - for (u = 0; u < nu->pntsu; u++){ + for (u = 0; u < nu->pntsu; u++) { switch (snap_mode) { case SCE_SNAP_MODE_VERTEX: { @@ -1458,7 +1458,8 @@ static bool snapCurve(short snap_mode, ARegion *ar, Object *ob, Curve *cu, float if (!(nu->bezt[u].f3 & SELECT) && !(nu->bezt[u].h2 & HD_ALIGN && nu->bezt[u].f1 & SELECT)) { retval |= snapVertex(ar, nu->bezt[u].vec[2], NULL, obmat, NULL, ray_start, ray_start_local, ray_normal_local, mval, r_loc, NULL, r_dist_px, r_depth); } - } else { + } + else { /* curve is not visible outside editmode if nurb length less than two */ if (nu->pntsu > 1) { retval |= snapVertex(ar, nu->bezt[u].vec[1], NULL, obmat, NULL, ray_start, ray_start_local, ray_normal_local, mval, r_loc, NULL, r_dist_px, r_depth); |