Bug fix #2320
Silly 2.36 bug! In FaceSelect mode, other solid objects didn't show. Bad! Additional; when using Halo material, and setting 'X Alpha', and disabling Halo option, the 'Only Shadow' option turned on... uses same bit... No time for real fix here, so for now the bit is always cleared after disabling Halo.
This commit is contained in:
parent
9efe92bbaa
commit
e9381e61aa
@ -2483,8 +2483,11 @@ void do_matbuts(unsigned short event)
|
||||
break;
|
||||
case B_MATHALO:
|
||||
/* when halo is disabled, clear star flag, this is the same as MA_FACETEXTURE <blush> */
|
||||
/* same for 'xtreme alpha' which is 'only shadow' */
|
||||
ma= G.buts->lockpoin;
|
||||
if((ma->mode & MA_HALO)==0) ma->mode &= ~MA_STAR;
|
||||
if((ma->mode & MA_HALO)==0) {
|
||||
ma->mode &= ~(MA_STAR|MA_HALO_XALPHA);
|
||||
}
|
||||
BIF_preview_changed(G.buts);
|
||||
allqueue(REDRAWBUTSSHADING, 0);
|
||||
shade_buttons_change_3d();
|
||||
|
@ -1856,7 +1856,7 @@ static void drawmeshsolid(Object *ob, float *nors)
|
||||
|
||||
dl= find_displist(&ob->disp, DL_VERTS);
|
||||
if(dl) extverts= dl->verts;
|
||||
|
||||
|
||||
glBegin(GL_QUADS);
|
||||
glmode= GL_QUADS;
|
||||
|
||||
@ -4369,7 +4369,7 @@ void draw_object(Base *base)
|
||||
else if(dt==OB_BOUNDBOX) draw_bounding_volume(ob);
|
||||
else if(dt==OB_WIRE || me->totface==0) drawmeshwire(ob);
|
||||
else if(ma && (ma->mode & MA_HALO)) drawmeshwire(ob);
|
||||
else if(G.f & G_FACESELECT || (G.vd->drawtype==OB_TEXTURE && dt>OB_SOLID)) {
|
||||
else if( (ob==OBACT && (G.f & G_FACESELECT)) || (G.vd->drawtype==OB_TEXTURE && dt>OB_SOLID)) {
|
||||
draw_tface_mesh(ob, ob->data, dt);
|
||||
}
|
||||
else drawDispList(ob, dt);
|
||||
|
Loading…
Reference in New Issue
Block a user