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>2012-03-06 22:40:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-06 22:40:15 +0400
commit31d2ee9bf77bb991ea4779c47379b2cee84b27ed (patch)
treefd6f021356fc78d6dfeff9f18f601ce645dd7ffe /source/blender/editors/transform/transform.c
parent7b7214c72233f72268f72d31fd8626a0f94e557e (diff)
style cleanup, brackets in else/if, some indentation.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r--source/blender/editors/transform/transform.c27
1 files changed, 9 insertions, 18 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 8c690268444..979e3820018 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -1827,8 +1827,7 @@ int transformEnd(bContext *C, TransInfo *t)
exit_code = OPERATOR_CANCELLED;
restoreTransObjects(t); // calls recalcData()
}
- else
- {
+ else {
exit_code = OPERATOR_FINISHED;
}
@@ -2447,8 +2446,7 @@ int handleEventShear(TransInfo *t, wmEvent *event)
initMouseInputMode(t, &t->mouse, INPUT_VERTICAL_ABSOLUTE);
t->customData = (void*)1;
}
- else
- {
+ else {
initMouseInputMode(t, &t->mouse, INPUT_HORIZONTAL_ABSOLUTE);
t->customData = NULL;
}
@@ -2732,8 +2730,7 @@ int Resize(TransInfo *t, const int mval[2])
{
ratio = 1.0f - ((t->imval[0] - mval[0]) + (t->imval[1] - mval[1]))/100.0f;
}
- else
- {
+ else {
ratio = t->values[0];
}
@@ -3451,10 +3448,8 @@ static void applyTranslation(TransInfo *t, float vec[3])
continue;
/* handle snapping rotation before doing the translation */
- if (usingSnappingNormal(t))
- {
- if (validSnappingNormal(t))
- {
+ if (usingSnappingNormal(t)) {
+ if (validSnappingNormal(t)) {
float *original_normal = td->axismtx[2];
float axis[3];
float quat[4];
@@ -3470,8 +3465,7 @@ static void applyTranslation(TransInfo *t, float vec[3])
ElementRotation(t, td, mat, V3D_LOCAL);
}
- else
- {
+ else {
float mat[3][3];
unit_m3(mat);
@@ -4174,12 +4168,10 @@ int BoneSize(TransInfo *t, const int mval[2])
// TRANSFORM_FIX_ME MOVE TO MOUSE INPUT
/* for manipulator, center handle, the scaling can't be done relative to center */
- if( (t->flag & T_USES_MANIPULATOR) && t->con.mode==0)
- {
+ if ((t->flag & T_USES_MANIPULATOR) && t->con.mode==0) {
ratio = 1.0f - ((t->imval[0] - mval[0]) + (t->imval[1] - mval[1]))/100.0f;
}
- else
- {
+ else {
ratio = t->values[0];
}
@@ -5103,8 +5095,7 @@ int Mirror(TransInfo *t, const int UNUSED(mval[2]))
ED_area_headerprint(t->sa, str);
}
- else
- {
+ else {
size[0] = size[1] = size[2] = 1;
size_to_mat3( mat,size);