Two small fixes thanks to test:
- backbuf draw vertices did still use pointsize 1.0, making them hard to select - wire frontbuf draw on select used un-initialized color
This commit is contained in:
parent
9314ee5e66
commit
84b021e90f
@ -4337,6 +4337,8 @@ static void bbs_mesh_verts(Object *ob, int offset)
|
|||||||
EditVert *eve;
|
EditVert *eve;
|
||||||
int a= offset;
|
int a= offset;
|
||||||
|
|
||||||
|
glPointSize( BIF_GetThemeValuef(TH_VERTEX_SIZE) );
|
||||||
|
|
||||||
bglBegin(GL_POINTS);
|
bglBegin(GL_POINTS);
|
||||||
for(eve= G.editMesh->verts.first; eve; eve= eve->next, a++) {
|
for(eve= G.editMesh->verts.first; eve; eve= eve->next, a++) {
|
||||||
if(eve->h==0) {
|
if(eve->h==0) {
|
||||||
@ -4345,6 +4347,8 @@ static void bbs_mesh_verts(Object *ob, int offset)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
bglEnd();
|
bglEnd();
|
||||||
|
|
||||||
|
glPointSize(1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* two options, edgecolors or black */
|
/* two options, edgecolors or black */
|
||||||
|
@ -668,14 +668,14 @@ static void unified_select_draw(EditVert *eve, EditEdge *eed, EditFace *efa)
|
|||||||
if(dl) dlm= dl->mesh;
|
if(dl) dlm= dl->mesh;
|
||||||
if( (me->flag & ME_OPT_EDGES) && (me->flag & ME_SUBSURF) && me->subdiv) optimal= 1;
|
if( (me->flag & ME_OPT_EDGES) && (me->flag & ME_SUBSURF) && me->subdiv) optimal= 1;
|
||||||
|
|
||||||
|
if(eed->f & SELECT) BIF_ThemeColor(TH_EDGE_SELECT);
|
||||||
|
else BIF_ThemeColor(TH_WIRE);
|
||||||
|
|
||||||
if(dlm && optimal) {
|
if(dlm && optimal) {
|
||||||
MEdge *medge= dlm->medge;
|
MEdge *medge= dlm->medge;
|
||||||
MVert *mvert= dlm->mvert;
|
MVert *mvert= dlm->mvert;
|
||||||
int b;
|
int b;
|
||||||
|
|
||||||
if(eed->f & SELECT) BIF_ThemeColor(TH_EDGE_SELECT);
|
|
||||||
else BIF_ThemeColor(TH_WIRE);
|
|
||||||
|
|
||||||
glBegin(GL_LINES);
|
glBegin(GL_LINES);
|
||||||
for (b=0; b<dlm->totedge; b++, medge++) {
|
for (b=0; b<dlm->totedge; b++, medge++) {
|
||||||
if(medge->flag & ME_EDGEDRAW) {
|
if(medge->flag & ME_EDGEDRAW) {
|
||||||
|
Loading…
Reference in New Issue
Block a user