style cleanup

This commit is contained in:
Campbell Barton
2013-04-19 00:37:30 +00:00
parent 43998d6a38
commit f2f27bf832
3 changed files with 7 additions and 7 deletions

View File

@@ -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);

View File

@@ -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--;
}

View File

@@ -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;