diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-17 00:42:21 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-17 00:42:21 +0400 |
commit | b4bcc94a68cb69c255388f9233c155ee5f9a651f (patch) | |
tree | 2f6ab228314b8bc885b467265ca56d8bafffea30 /mesh_f2.py | |
parent | ff76aab72a9ced1132a5e1cc66c22c1608403e9d (diff) |
Fix #35231: f2 addon not working for converting adjacent faces into a single
ngon. Now just let the make face operator try it instead of trying to decide
when to do this.
Diffstat (limited to 'mesh_f2.py')
-rw-r--r-- | mesh_f2.py | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -249,15 +249,11 @@ class MeshF2(bpy.types.Operator): bm = bmesh.from_edit_mesh(context.active_object.data) sel = [v for v in bm.verts if v.select] if len(sel) > 2: - if len(bm.faces) > 0: - if len([True for f in bm.faces if f.select]) == len(bm.faces): - # all faces selected, can't create new one - return {'CANCELLED'} # original 'Make Edge/Face' behaviour try: bpy.ops.mesh.edge_face_add('INVOKE_DEFAULT') except: - pass + return {'CANCELLED'} elif len(sel) == 1: # single vertex selected -> mirror vertex and create new face quad_from_vertex(bm, sel[0], context, event) |