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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-06-07 17:04:31 +0400
committerTon Roosendaal <ton@blender.org>2005-06-07 17:04:31 +0400
commit9fea86d38ab444d43cd5e1219d194ade8479d1ed (patch)
tree404d41a9b5929fdf7ca344821ef267b4d6be91df /source
parentaf890a6270e654247a2b02184b406fc7431293e1 (diff)
Fix #2709
Editmesh; "Remove Doubles" also included hidden vertices.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editmesh_tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editmesh_tools.c b/source/blender/src/editmesh_tools.c
index 42c6473f426..da7d86d3af8 100644
--- a/source/blender/src/editmesh_tools.c
+++ b/source/blender/src/editmesh_tools.c
@@ -184,7 +184,7 @@ int removedoublesflag(short flag, float limit) /* return amount */
amount= 0;
while(eve) {
eve->f &= ~128;
- if(eve->f & flag) amount++;
+ if(eve->h==0 && (eve->f & flag)) amount++;
eve= eve->next;
}
if(amount==0) return 0;
@@ -193,7 +193,7 @@ int removedoublesflag(short flag, float limit) /* return amount */
sb= sortblock= (struct xvertsort *)MEM_mallocN(sizeof(struct xvertsort)*amount,"sortremovedoub");
eve= em->verts.first;
while(eve) {
- if(eve->f & flag) {
+ if(eve->h==0 && (eve->f & flag)) {
sb->x= eve->co[0]+eve->co[1]+eve->co[2];
sb->v1= eve;
sb++;