diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-12 15:27:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-12 15:27:55 +0400 |
commit | fc39e895e945d5125ede6b6a5157f1160eec1fc5 (patch) | |
tree | 27bc75b46ae0a58ea8cec0025901a53bbc5fd715 /source/blender/editors/space_view3d | |
parent | 62aa004c25572fceb44ffdff37dd20119b81ca02 (diff) |
Style Cleanup: whitespace
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_buttons.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_project.c | 2 |
3 files changed, 4 insertions, 4 deletions
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)); |