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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-05-07 15:13:37 +0400
committerTon Roosendaal <ton@blender.org>2005-05-07 15:13:37 +0400
commit54094fed0bbb110281998fa960f55460a4c3e01d (patch)
tree4c1c1cd30a74559be69ef225d934684efcb42e4a /source/blender/src/editmesh_lib.c
parentbcd5d1c9ed084dec77b9801938016791bd4aa38d (diff)
Commit of 2 weeks ago to correctly find normals for extrusion had a typo...
started loop with "->last" instead of "->first". This caused old faces that should be deleted on extrude to remain there. Thanks Jean-Luc for finding it!
Diffstat (limited to 'source/blender/src/editmesh_lib.c')
-rw-r--r--source/blender/src/editmesh_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/editmesh_lib.c b/source/blender/src/editmesh_lib.c
index e41e383cc76..e0b8afd4731 100644
--- a/source/blender/src/editmesh_lib.c
+++ b/source/blender/src/editmesh_lib.c
@@ -991,10 +991,10 @@ short extrudeflag_vert(short flag, float *nor)
if del_old==0 the extrude creates a volume.
*/
- /* if *one* selected face has edge with unselected face; remove old selected faces */
- for(efa= em->faces.last; efa; efa= efa->prev) {
- if(faceselectedAND(efa, flag)) {
- if(efa->e1->f1==2 || efa->e2->f1==2 || efa->e3->f1==2 || (efa->e4 && efa->e4->f1==2)) {
+ /* find if we delete old faces */
+ for(eed= em->edges.first; eed; eed= eed->next) {
+ if( (eed->f2==1 || eed->f2==2) ) {
+ if(eed->f1==2) {
del_old= 1;
break;
}