diff options
Diffstat (limited to 'source')
-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; |