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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-10-06 23:49:38 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-10-15 15:06:08 +0400
commit0fbf5b73ce14474e5f42a8da43665a1b6f220847 (patch)
treeab9a494f21df9f0588e71c1649e509f7f656b3e3 /source
parent01af839ee6dc0f0bdbaafbc4d4e7c4dd5c69ab41 (diff)
Cleanup: style
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c9
-rw-r--r--source/blender/editors/transform/transform.c3
-rw-r--r--source/blender/editors/transform/transform_conversions.c4
3 files changed, 11 insertions, 5 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 01b724867a8..8c97f19fa8e 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -5096,7 +5096,7 @@ static bool proj_paint_add_slot(bContext *C, wmOperator *op)
DAG_id_tag_update(&ma->id, 0);
ED_area_tag_redraw(CTX_wm_area(C));
- return true;
+ return true;
}
}
@@ -5105,9 +5105,12 @@ static bool proj_paint_add_slot(bContext *C, wmOperator *op)
static int texture_paint_add_texture_paint_slot_exec(bContext *C, wmOperator *op)
{
- if(proj_paint_add_slot(C, op))
+ if (proj_paint_add_slot(C, op)) {
return OPERATOR_FINISHED;
- else return OPERATOR_CANCELLED;
+ }
+ else {
+ return OPERATOR_CANCELLED;
+ }
}
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 008022a9859..d5a26b1af48 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -270,7 +270,8 @@ void convertViewVec(TransInfo *t, float r_vec[3], int dx, int dy)
r_vec[0] = dx;
r_vec[1] = dy;
}
- else { const float mval_f[2] = {(float)dx, (float)dy};
+ else {
+ const float mval_f[2] = {(float)dx, (float)dy};
ED_view3d_win_to_delta(t->ar, mval_f, r_vec, t->zfac);
}
}
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index aa215613841..9e6f5d20e11 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -1711,7 +1711,9 @@ static void createTransLatticeVerts(TransInfo *t)
if (bp->f1 & SELECT) {
td->flag = TD_SELECTED;
}
- else td->flag = 0;
+ else {
+ td->flag = 0;
+ }
copy_m3_m3(td->smtx, smtx);
copy_m3_m3(td->mtx, mtx);