diff options
author | Ton Roosendaal <ton@blender.org> | 2005-07-11 15:58:29 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-07-11 15:58:29 +0400 |
commit | 85aca9bba1fc85968083fa04f446fe91a854e6a4 (patch) | |
tree | d5f106b1d791a25c7f845014ef72e28149418085 /source/blender/src/editmesh_loop.c | |
parent | 10c4c6463c64b6f10765e25291036c2fbe6b5fce (diff) |
Fix for bug #2747
Knife cut in edge selection mode can cause crashes, since it uses subdivide
which isn't edge-select aware yet.
Quickly patched it by making knife checking on vertex selection.
Johnny: undo this change when you add the new subdiv code, good test for if
it works as well! :)
Diffstat (limited to 'source/blender/src/editmesh_loop.c')
-rw-r--r-- | source/blender/src/editmesh_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editmesh_loop.c b/source/blender/src/editmesh_loop.c index 855f5c2ffb1..afc63ee50f7 100644 --- a/source/blender/src/editmesh_loop.c +++ b/source/blender/src/editmesh_loop.c @@ -577,7 +577,7 @@ void KnifeSubdivide(char mode) if (curve && len && mode){ eed= em->edges.first; while(eed) { - if( eed->f & SELECT ){ + if( eed->v1->f & eed->v2->f & SELECT ){ // NOTE: uses vertex select, subdiv doesnt do edges yet isect=seg_intersect(eed, curve, len); if (isect) eed->f2= 1; else eed->f2=0; |