forked from bartvdbraak/blender
Fix T65689 Geometry overlaps axis selector
It seems that in 2.79 callbacks were drawn with depth test off by default.
This commit is contained in:
parent
1a9e698099
commit
1dab26afb9
@ -1691,7 +1691,9 @@ void DRW_draw_render_loop_ex(struct Depsgraph *depsgraph,
|
||||
DRW_state_reset();
|
||||
|
||||
if (DST.draw_ctx.evil_C) {
|
||||
GPU_depth_test(false);
|
||||
ED_region_draw_cb_draw(DST.draw_ctx.evil_C, DST.draw_ctx.ar, REGION_DRAW_POST_VIEW);
|
||||
GPU_depth_test(true);
|
||||
/* Callback can be nasty and do whatever they want with the state.
|
||||
* Don't trust them! */
|
||||
DRW_state_reset();
|
||||
|
Loading…
Reference in New Issue
Block a user