Skip to content

Commit

Permalink
appears to work for multiple F
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Eric Hollister committed Aug 22, 2015
1 parent fdd8abb commit 12bb0c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libged/nmg_make_f.c
Expand Up @@ -365,7 +365,7 @@ ged_nmg_make_f(struct ged* gedp, int argc, const char* argv[])
v_ids[num_verts++] = atof(argv[idx]);
}
if ( ( BU_STR_EQUAL( "F", argv[idx] ) || idx == argc - 1 )
&& num_verts > 3 ) {
&& num_verts >= 3 ) {
vstructs = (struct vertex ***) bu_calloc( num_verts,
sizeof(struct vertex **), "face_verts");
fu = make_face(m, v_ids, vstructs, num_verts);
Expand All @@ -389,7 +389,7 @@ ged_nmg_make_f(struct ged* gedp, int argc, const char* argv[])
nmg_rebound(m, &tol);
}
num_verts = 0;
} else if ( BU_STR_EQUAL( "F", argv[idx] ) && num_verts < 3 ) {
} else if ( BU_STR_EQUAL( "F", argv[idx] ) && num_verts < 3 ) {
num_verts = 0;
}
}
Expand Down

0 comments on commit 12bb0c0

Please sign in to comment.