Fix T72507: Depth of bones missing for navigation

Regression introduced in rBb11272a0
This commit is contained in:
Germano Cavalcante 2019-12-17 10:34:49 -03:00
parent bda4a284d2
commit 84c1e57dfe
Notes: blender-bot 2023-02-14 11:28:43 +01:00
Referenced by issue #72507,  The 'Center View to Mouse' feature malfunctions in 2.82
1 changed files with 3 additions and 0 deletions

View File

@ -2468,6 +2468,9 @@ void DRW_draw_depth_loop(struct Depsgraph *depsgraph,
/* Get list of enabled engines */
{
/* Required by `DRW_state_draw_support()` */
DST.draw_ctx.v3d = v3d;
drw_engines_enable_basic();
if (DRW_state_draw_support()) {
drw_engines_enable_overlays();