Fix T72261 Overlay: Edit Mesh: Edges not visible when using "In front"
This was caused by additional depth pass not rendering in the correct view.
This commit is contained in:
parent
06a8f55104
commit
0cd0058e27
Notes:
blender-bot
2023-02-14 08:40:26 +01:00
Referenced by issue #72261, Edges and faces almost invisible when object "In front"
|
@ -407,7 +407,11 @@ void OVERLAY_edit_mesh_draw(OVERLAY_Data *vedata)
|
|||
GPU_framebuffer_clear_depth(fbl->overlay_default_fb, 1.0f);
|
||||
}
|
||||
|
||||
DRW_draw_pass(psl->edit_mesh_depth_ps[IN_FRONT]);
|
||||
if (!DRW_pass_is_empty(psl->edit_mesh_depth_ps[IN_FRONT])) {
|
||||
DRW_view_set_active(NULL);
|
||||
DRW_draw_pass(psl->edit_mesh_depth_ps[IN_FRONT]);
|
||||
}
|
||||
|
||||
overlay_edit_mesh_draw_components(psl, pd, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue