diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-09-06 12:32:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-09-06 12:39:59 +0400 |
commit | 1083da4bde1222bdd3dcfbf3f50e5a253f631126 (patch) | |
tree | 54ea8d1e902485866e5e53ca2a3d93effad660e1 /source/blender/editors/mesh | |
parent | f7945c659b0c2cf77cc4e9bdc3072c98f081835b (diff) |
Fix T41730: Knife Cut fails on concave faces
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index 5b22c99144e..165af62c715 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -2409,6 +2409,10 @@ static void knife_make_face_cuts(KnifeTool_OpData *kcd, BMFace *f, ListBase *kfe kfe->basef = fnew; BLI_addtail(&fnew_kfedges, ref); } + else if (!knife_edge_in_face(kfe, f)) { + /* Concave ngon's - this edge might not be in either faces, T41730 */ + BLI_remlink(kfedges, ref); + } } if (fnew_kfedges.first) knife_make_face_cuts(kcd, fnew, &fnew_kfedges); |