diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-04 02:23:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-04 02:33:49 +0300 |
commit | 971ab57c7df0b0ecdc948bc47a9bc133e35fb94f (patch) | |
tree | f26af3c28dadb02019d93fc23b970164307b9361 /source/blender/editors | |
parent | a04155dd52ee26fa0567b10255d7f48849197c02 (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c | 2 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_gizmo_3d.c | 4 | ||||
-rw-r--r-- | source/blender/editors/util/numinput.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c index 7dc0a24add9..fa8dd38cad6 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c @@ -357,7 +357,7 @@ static void dial_draw_intern( } if (draw_options & ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_VALUE && - (gz->flag & WM_GIZMO_DRAW_VALUE)) + (gz->flag & WM_GIZMO_DRAW_VALUE)) { DialInteraction *inter = gz->interaction_data; if (inter) { diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c index 097e902105b..90f94eb268a 100644 --- a/source/blender/editors/transform/transform_gizmo_3d.c +++ b/source/blender/editors/transform/transform_gizmo_3d.c @@ -1283,8 +1283,8 @@ void drawDial3d(const TransInfo *t) scale *= ED_view3d_pixel_size_no_ui_scale(t->ar->regiondata, mat_final[3]); mul_mat3_m4_fl(mat_final, scale); - if ((t->tsnap.mode & (SCE_SNAP_MODE_INCREMENT | SCE_SNAP_MODE_GRID)) - && activeSnap(t)) + if ((t->tsnap.mode & (SCE_SNAP_MODE_INCREMENT | SCE_SNAP_MODE_GRID)) && + activeSnap(t)) { increment = (t->modifiers & MOD_PRECISION) ? t->snap[2] : t->snap[1]; } diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c index 887c85300d1..52cf1b2d708 100644 --- a/source/blender/editors/util/numinput.c +++ b/source/blender/editors/util/numinput.c @@ -556,7 +556,7 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event) } else { n->val_flag[idx] |= NUM_INVALID; - } + } #ifdef USE_FAKE_EDIT |