From fc39e895e945d5125ede6b6a5157f1160eec1fc5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 12 Jan 2014 22:27:55 +1100 Subject: Style Cleanup: whitespace --- source/blender/editors/space_view3d/drawobject.c | 2 +- source/blender/editors/space_view3d/view3d_buttons.c | 4 ++-- source/blender/editors/space_view3d/view3d_project.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/space_view3d') diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index f34eb6a763f..173e10b480f 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -611,7 +611,7 @@ static void draw_empty_image(Object *ob, const short dflag, const unsigned char if (ibuf && ibuf->rect) { const bool use_clip = (U.glalphaclip != 1.0f); - int zoomfilter = (U.gameflags & USER_DISABLE_MIPMAP )? GL_NEAREST : GL_LINEAR; + int zoomfilter = (U.gameflags & USER_DISABLE_MIPMAP ) ? GL_NEAREST : GL_LINEAR; /* Setup GL params */ glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c index 3b4405a2c1c..b4bc202c177 100644 --- a/source/blender/editors/space_view3d/view3d_buttons.c +++ b/source/blender/editors/space_view3d/view3d_buttons.c @@ -884,7 +884,7 @@ static void view3d_panel_vgroup(const bContext *C, Panel *pa) ot = ot_weight_paste; WM_operator_properties_create_ptr(&op_ptr, ot); RNA_int_set(&op_ptr, "weight_group", i); - icon = (locked) ? ICON_BLANK1:ICON_PASTEDOWN; + icon = (locked) ? ICON_BLANK1 : ICON_PASTEDOWN; uiItemFullO_ptr(row, ot, "", icon, op_ptr.data, WM_OP_INVOKE_DEFAULT, 0); /* The weight entry delete function */ @@ -892,7 +892,7 @@ static void view3d_panel_vgroup(const bContext *C, Panel *pa) ot = ot_weight_delete; WM_operator_properties_create_ptr(&op_ptr, ot); RNA_int_set(&op_ptr, "weight_group", i); - icon = (locked) ? ICON_LOCKED:ICON_X; + icon = (locked) ? ICON_LOCKED : ICON_X; uiItemFullO_ptr(row, ot, "", icon, op_ptr.data, WM_OP_INVOKE_DEFAULT, 0); yco -= UI_UNIT_Y; diff --git a/source/blender/editors/space_view3d/view3d_project.c b/source/blender/editors/space_view3d/view3d_project.c index 28ffdea0e6c..0954563be14 100644 --- a/source/blender/editors/space_view3d/view3d_project.c +++ b/source/blender/editors/space_view3d/view3d_project.c @@ -141,7 +141,7 @@ static eV3DProjStatus ed_view3d_project__internal(const ARegion *ar, if (((flag & V3D_PROJ_TEST_CLIP_ZERO) == 0) || (fabsf(vec4[3]) > (float)BL_ZERO_CLIP)) { if (((flag & V3D_PROJ_TEST_CLIP_NEAR) == 0) || (vec4[3] > (float)BL_NEAR_CLIP)) { - const float scalar = (vec4[3] != 0.0f) ? (1.0f / vec4[3]): 0.0f; + const float scalar = (vec4[3] != 0.0f) ? (1.0f / vec4[3]) : 0.0f; const float fx = ((float)ar->winx / 2.0f) * (1.0f + (vec4[0] * scalar)); if (((flag & V3D_PROJ_TEST_CLIP_WIN) == 0) || (fx > 0.0f && fx < (float)ar->winx)) { const float fy = ((float)ar->winy / 2.0f) * (1.0f + (vec4[1] * scalar)); -- cgit v1.2.3