diff options
author | Ulysse Martin <youle> | 2020-03-09 19:03:13 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-09 19:11:24 +0300 |
commit | aca222c3da20c0c48d12124af4c4041579a5690e (patch) | |
tree | aa581ed36f552c3ca56419f8218360128af9f8ab /source/blender/draw/intern/draw_manager.c | |
parent | bada2dcafd98a24802af13cb115880a3011b4153 (diff) |
Fix unnecessary grease pencil drawing when there are no grease pencil objects
Differential Revision: https://developer.blender.org/D6551
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 85caf0825e0..85b071f5c89 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -1216,7 +1216,7 @@ static bool drw_gpencil_engine_needed(Depsgraph *depsgraph, View3D *v3d) const bool exclude_gpencil_rendering = v3d ? (v3d->object_type_exclude_viewport & (1 << OB_GPENCIL)) != 0 : false; - return (!exclude_gpencil_rendering) || DEG_id_type_any_exists(depsgraph, ID_GD); + return (!exclude_gpencil_rendering) && DEG_id_type_any_exists(depsgraph, ID_GD); } /* -------------------------------------------------------------------- */ |