diff options
author | Ton Roosendaal <ton@blender.org> | 2004-09-24 02:54:18 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-09-24 02:54:18 +0400 |
commit | 1ae3e3efc1dcddba53190f0e9eae92227a5b01c7 (patch) | |
tree | 13ce610b2eb904caba430a08d584df74c18baae2 /source/blender/src/editmesh_loop.c | |
parent | 404f4d7a011fd778733640c437e4c922f8f6d4a4 (diff) |
Fix for loopcut, didn't work after reconstruct...
Diffstat (limited to 'source/blender/src/editmesh_loop.c')
-rw-r--r-- | source/blender/src/editmesh_loop.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/source/blender/src/editmesh_loop.c b/source/blender/src/editmesh_loop.c index 6fcec5a9b74..e7350f8384f 100644 --- a/source/blender/src/editmesh_loop.c +++ b/source/blender/src/editmesh_loop.c @@ -1770,17 +1770,21 @@ void loopoperations(char mode) if(cut){ /* Now that we have selected a cut %, mark the edges for cutting. */ if(!inset){ - for(eed = em->edges.first; eed; eed=eed->next){ - if(percentcut == 1.0) - percentcut = 0.9999; - else if(percentcut == 0.0) - percentcut = 0.0001; - if(eed->f & 8){ - if(eed->f & 32)/* Need to offset by a const. (0.5/32768) for consistant roundoff */ - eed->f1 = 32768*(1.0-percentcut - 0.0000153); - else - eed->f1 = 32768*(percentcut + 0.0000153); - } + + for(eed = em->edges.first; eed; eed=eed->next){ + if(percentcut == 1.0) + percentcut = 0.9999; + else if(percentcut == 0.0) + percentcut = 0.0001; + if(eed->f & 8){ + if(eed->f & 32)/* Need to offset by a const. (0.5/32768) for consistant roundoff */ + eed->f1 = 32768*(1.0-percentcut - 0.0000153); + else + eed->f1 = 32768*(percentcut + 0.0000153); + } + + /* because of hack in subdivideflag (ton) */ + eed->f2= eed->f; } } /*-------------------------------------*/ |