- Removed printf from previous commit
- fixed small counter error in backbuffer color codes, when edge+faces are drawn
This commit is contained in:
@@ -4423,11 +4423,11 @@ static int bbs_mesh_solid(Object *ob, int facecol)
|
||||
int b;
|
||||
|
||||
if(dl) dlm= dl->mesh;
|
||||
a= 1; // color indices start with 1
|
||||
a= 0;
|
||||
|
||||
if(dlm) {
|
||||
MFace *mface;
|
||||
efa= dlm->editface[0];
|
||||
efa= NULL;
|
||||
|
||||
for(b=0, mface= dlm->mface; b<dlm->totface; b++, mface++) {
|
||||
if(mface->v3) {
|
||||
@@ -4447,6 +4447,7 @@ static int bbs_mesh_solid(Object *ob, int facecol)
|
||||
glEnd();
|
||||
}
|
||||
}
|
||||
a++; // the weird constructed loop ends with last drawn color...
|
||||
}
|
||||
else {
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ static void check_fgons_selection()
|
||||
|
||||
if(sel && desel) break;
|
||||
}
|
||||
printf("fgon %d sel %d desel %d\n", index, sel, desel);
|
||||
|
||||
if(sel && desel) sel= 0;
|
||||
else if(sel) sel= 1;
|
||||
else sel= 0;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user