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:
Clément Foucault 2019-06-18 16:14:17 +02:00
parent 1a9e698099
commit 1dab26afb9
Notes: blender-bot 2023-02-14 06:00:44 +01:00
Referenced by issue #65689, Geometry overlaps axis selector
1 changed files with 2 additions and 0 deletions

View File

@ -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();