diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-19 04:37:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-19 04:37:30 +0400 |
commit | f2f27bf8325432ec8995f16385c7d65ef975eee1 (patch) | |
tree | d583ead3932b84e4e645e313f4cb1e237d3b13a5 /source/blender | |
parent | 43998d6a383f6d6a8ae31ed8533235c226deda3f (diff) |
style cleanup
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 4 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_parametrizer.c | 8 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_unwrap_ops.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 22dff8cd662..86e26bf0681 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -906,8 +906,8 @@ static int area_dupli_invoke(bContext *C, wmOperator *op, const wmEvent *event) /* adds window to WM */ rect = sa->totrct; BLI_rcti_translate(&rect, win->posx, win->posy); - rect.xmax = rect.xmin + BLI_rcti_size_x(&rect)/U.pixelsize; - rect.ymax = rect.ymin + BLI_rcti_size_y(&rect)/U.pixelsize; + rect.xmax = rect.xmin + BLI_rcti_size_x(&rect) / U.pixelsize; + rect.ymax = rect.ymin + BLI_rcti_size_y(&rect) / U.pixelsize; newwin = WM_window_open(C, &rect); diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c index 5744a6e6787..0d2f467767a 100644 --- a/source/blender/editors/uvedit/uvedit_parametrizer.c +++ b/source/blender/editors/uvedit/uvedit_parametrizer.c @@ -4186,8 +4186,8 @@ static void p_add_ngon(ParamHandle *handle, ParamKey key, int nverts, normal_tri_v3(n, co[v0], co[v1], co[v2]); - if(normal && (dot_v3v3(n, normal) < 0.0f)) - angle = 2.0f*M_PI - angle; + if (normal && (dot_v3v3(n, normal) < 0.0f)) + angle = (float)(2.0 * M_PI) - angle; if (angle < minangle) { minangle = angle; @@ -4211,8 +4211,8 @@ static void p_add_ngon(ParamHandle *handle, ParamKey key, int nverts, } /* remove corner */ - if(mini + 1 < nverts) - memmove(boundary + mini, boundary + mini + 1, (nverts - mini - 1)*sizeof(int)); + if (mini + 1 < nverts) + memmove(boundary + mini, boundary + mini + 1, (nverts - mini - 1) * sizeof(int)); nverts--; } diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c index a315e56d5c6..2f4847eb619 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c @@ -256,7 +256,7 @@ static ParamHandle *construct_param_handle(Scene *scene, Object *ob, BMEditMesh ParamKey key; ParamKey *vkeys = BLI_array_alloca(vkeys, efa->len); ParamBool *pin = BLI_array_alloca(pin, efa->len); - ParamBool *select= BLI_array_alloca(select, efa->len); + ParamBool *select = BLI_array_alloca(select, efa->len); float **co = BLI_array_alloca(co, efa->len); float **uv = BLI_array_alloca(uv, efa->len); int i, lsel; |