diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-23 02:03:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-23 02:03:41 +0400 |
commit | dab1d8e4874564f182d7b73b603f66a4f34565ad (patch) | |
tree | e79733e7f9091b5a5840af54062f8e7bcb770f8b /source/blender/editors/transform/transform.c | |
parent | d2a37d464a81959eb3409115f320c83af4398934 (diff) |
style cleanup
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r-- | source/blender/editors/transform/transform.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index fea6f7266b2..45e5fb10bc0 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -617,7 +617,7 @@ static void transform_event_xyz_constraint(TransInfo *t, short key_type, char cm char axis; /* Initialize */ - switch(key_type) { + switch (key_type) { case XKEY: axis = 'X'; constraint_axis = CON_AXIS0; @@ -1141,9 +1141,11 @@ int calculateTransformCenter(bContext *C, int centerMode, float *cent3d, int *ce calculateCenter(t); - if(cent2d) + if (cent2d) { copy_v2_v2_int(cent2d, t->center2d); - if(cent3d) { + } + + if (cent3d) { // Copy center from constraint center. Transform center can be local copy_v3_v3(cent3d, t->con.center); } |