GP: Fix Stroke mode when annotations not enabled

Internally, a drawing is done to calculate z-depth and needs always the drawing.
This commit is contained in:
Antonioya
2018-11-01 12:02:08 +01:00
parent 10d7ebc469
commit 8f1b1b5abb

View File

@@ -881,9 +881,7 @@ void ED_view3d_draw_depth_gpencil(
GPU_depth_test(true);
if (v3d->flag2 & V3D_SHOW_ANNOTATION) {
ED_gpencil_draw_view3d(NULL, scene, view_layer, depsgraph, v3d, ar, true);
}
ED_gpencil_draw_view3d(NULL, scene, view_layer, depsgraph, v3d, ar, true);
GPU_depth_test(false);
}