bugfix #18543
Using feature XRay + Transparent could crash on undo/redo, the view3d afterdraw was still storing data here whilst it shouldn't... Reason was that object got added twice actually... but only freed once. Also caused weird flashy display. Note to Brecht for merging: skip this one, I'll fix it in 2.5 too.
This commit is contained in:
@@ -4738,7 +4738,7 @@ void draw_object(Base *base, int flag)
|
||||
/* don't do xray in particle mode, need the z-buffer */
|
||||
if(!(G.f & G_PARTICLEEDIT)) {
|
||||
/* xray and transp are set when it is drawing the 2nd/3rd pass */
|
||||
if(!G.vd->xray && !G.vd->transp && (ob->dtx & OB_DRAWXRAY)) {
|
||||
if(!G.vd->xray && !G.vd->transp && (ob->dtx & OB_DRAWXRAY) && !(ob->dtx & OB_DRAWTRANSP)) {
|
||||
add_view3d_after(G.vd, base, V3D_XRAY, flag);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user