Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-17 00:42:21 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-17 00:42:21 +0400
commitb4bcc94a68cb69c255388f9233c155ee5f9a651f (patch)
tree2f6ab228314b8bc885b467265ca56d8bafffea30 /mesh_f2.py
parentff76aab72a9ced1132a5e1cc66c22c1608403e9d (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.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/mesh_f2.py b/mesh_f2.py
index 3e6f0537..f602e0b5 100644
--- a/mesh_f2.py
+++ b/mesh_f2.py
@@ -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)