Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorUlysse Martin <youle>2020-03-09 19:03:13 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-03-09 19:11:24 +0300
commitaca222c3da20c0c48d12124af4c4041579a5690e (patch)
treeaa581ed36f552c3ca56419f8218360128af9f8ab /source
parentbada2dcafd98a24802af13cb115880a3011b4153 (diff)
Fix unnecessary grease pencil drawing when there are no grease pencil objects
Differential Revision: https://developer.blender.org/D6551
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_manager.c2
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);
}
/* -------------------------------------------------------------------- */