Fix for bug #5351, sculpt doesn't work in xray mode
Moved depth update for sculptmode to after the point where xray/transp objects are drawn
This commit is contained in:
@@ -2897,9 +2897,6 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
|
||||
}
|
||||
}
|
||||
|
||||
if(!(retopo_mesh_check() || retopo_curve_check()) && (G.f & G_SCULPTMODE))
|
||||
view3d_update_depths(v3d);
|
||||
|
||||
if(G.moving) {
|
||||
BIF_drawConstraint();
|
||||
if(G.obedit) BIF_drawPropCircle(); // only editmode has proportional edit
|
||||
@@ -2911,6 +2908,9 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
|
||||
view3d_draw_xray(v3d, 0); // clears zbuffer if it is used!
|
||||
view3d_draw_transp(v3d, 0);
|
||||
|
||||
if(!(retopo_mesh_check() || retopo_curve_check()) && (G.f & G_SCULPTMODE))
|
||||
view3d_update_depths(v3d);
|
||||
|
||||
if(v3d->flag & V3D_CLIPPING)
|
||||
view3d_clr_clipping();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user