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>2004-09-30 00:38:23 +0400
committerTon Roosendaal <ton@blender.org>2004-09-30 00:38:23 +0400
commit6106f87776dedb4c5502ca41327f4e046442b842 (patch)
treefd996a170e6be769faf9d75639590a67d53e8ba9 /source/blender/src/editmesh_mods.c
parente25d151aedb15b7c617fe0986933adc4fc555401 (diff)
- Removed printf from previous commit
- fixed small counter error in backbuffer color codes, when edge+faces are drawn
Diffstat (limited to 'source/blender/src/editmesh_mods.c')
-rw-r--r--source/blender/src/editmesh_mods.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/editmesh_mods.c b/source/blender/src/editmesh_mods.c
index f0aab3b7563..71b7c81d483 100644
--- a/source/blender/src/editmesh_mods.c
+++ b/source/blender/src/editmesh_mods.c
@@ -424,9 +424,11 @@ EditEdge *findnearestedge(short *dist)
if(buf) {
index= sample_backbuf_rect(buf, 50, em_solidoffs, em_wireoffs, &distance); // global, set in drawobject.c
MEM_freeN(buf);
-
if(distance < *dist) {
- if(index>0 && index<=em_wireoffs) for(eed= G.editMesh->edges.first; eed; eed= eed->next, a++) if(index==a) break;
+ if(index>0 && index<=em_wireoffs-em_solidoffs) {
+ for(eed= G.editMesh->edges.first; eed; eed= eed->next, a++)
+ if(index==a) break;
+ }
if(eed) *dist= distance;
}
}