code cleanup: warnings and minor edits.

This commit is contained in:
Campbell Barton
2013-10-04 17:47:58 +00:00
parent 5dc9db3533
commit 0b1cf4c2ea
5 changed files with 3 additions and 11 deletions

View File

@@ -2012,7 +2012,7 @@ void fill_poly_v2i_n(
/* Build a list of nodes. */
nodes = 0; j = nr - 1;
for (i=0; i<nr; i++) {
for (i = 0; i < nr; i++) {
if ((verts[i][1] < pixel_y && verts[j][1] >= pixel_y) ||
(verts[j][1] < pixel_y && verts[i][1] >= pixel_y))
{

View File

@@ -73,6 +73,7 @@ int BM_iter_mesh_count(BMesh *bm, const char itype)
default:
count = 0;
BLI_assert(0);
break;
}
return count;

View File

@@ -121,9 +121,6 @@ static void bm_face_bisect_verts(BMesh *bm, BMFace *f, const float plane[4], con
l_first = BM_FACE_FIRST_LOOP(f);
(void)bm;
(void)plane;
/* add plane-aligned verts to the stack
* and check we have verts from both sides in this face,
* ... that the face doesn't only have boundry verts on the plane for eg. */

View File

@@ -983,12 +983,6 @@ void MESH_OT_flip_normals(wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
}
static const EnumPropertyItem direction_items[] = {
{false, "CW", 0, "Clockwise", ""},
{true, "CCW", 0, "Counter Clockwise", ""},
{0, NULL, 0, NULL, NULL}
};
/* only accepts 1 selected edge, or 2 selected faces */
static int edbm_edge_rotate_selected_exec(bContext *C, wmOperator *op)
{

View File

@@ -130,7 +130,7 @@ void RNA_api_mesh(StructRNA *srna)
parm = RNA_def_float(func, "split_angle", M_PI, 0.0f, M_PI, "",
"Angle between polys' normals above which an edge is always sharp (180° to disable)",
0.0f, M_PI);
RNA_def_property_subtype(parm, PROP_UNIT_ROTATION);
RNA_def_property_subtype(parm, (PropertySubType)PROP_UNIT_ROTATION);
func = RNA_def_function(srna, "free_normals_split", "rna_Mesh_free_normals_split");
RNA_def_function_ui_description(func, "Free split vertex normals");