DRW: Cleanup: Redundant check

This commit is contained in:
Clément Foucault 2018-10-28 21:46:52 +01:00
parent b8331b79e6
commit 49f6c3556c
1 changed files with 1 additions and 3 deletions

View File

@ -1519,9 +1519,7 @@ void DRW_draw_render_loop_ex(
/* annotations - temporary drawing buffer (3d space) */
/* XXX: Or should we use a proper draw/overlay engine for this case? */
if (((v3d->flag2 & V3D_RENDER_OVERRIDE) == 0) &&
(do_annotations))
{
if (do_annotations) {
glDisable(GL_DEPTH_TEST);
/* XXX: as scene->gpd is not copied for COW yet */
ED_gpencil_draw_view3d_annotations(DEG_get_input_scene(depsgraph), depsgraph, v3d, ar, true);