code cleanup: warnings and minor edits.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -73,6 +73,7 @@ int BM_iter_mesh_count(BMesh *bm, const char itype)
|
||||
default:
|
||||
count = 0;
|
||||
BLI_assert(0);
|
||||
break;
|
||||
}
|
||||
|
||||
return count;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user