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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user