diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-05-28 10:11:55 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-05-29 15:48:59 +0300 |
commit | 2069b3b888db7ca448317218d3d42234b7fa77eb (patch) | |
tree | aaa7491de143cb7a765b42ecc29b87de79d94bc7 /source/blender/depsgraph/intern/depsgraph.h | |
parent | 56176bd19ece34166b17a799c0ff522556927ac9 (diff) |
DrawManager: Cycles+GPencil
Fix for GPencil and Cycles Render draw type. GPencil objects were only
shown when overlays were turned on. The cause of this is an
optimization we did to not populate any draw engine when an
external renderer was used with overlays turned off.
This will check if there is any visible GPencil object in the scene. if
so it will still perform the loop.
`DEG_id_type_any_exists` can check if any object of a certain type_id is in the
result. This check is also being used to check if there are any
visible grease pencil objects as a precheck in `DRW_render_check_grease_pencil`.
Reviewed By: brecht, fclem, antoniov
Maniphest Tasks: T65191
Differential Revision: https://developer.blender.org/D4962
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph.h')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.h b/source/blender/depsgraph/intern/depsgraph.h index 073ec99b3aa..f194a44346b 100644 --- a/source/blender/depsgraph/intern/depsgraph.h +++ b/source/blender/depsgraph/intern/depsgraph.h @@ -152,6 +152,9 @@ struct Depsgraph { /* Indicates which ID types were updated. */ char id_type_updated[MAX_LIBARRAY]; + /* Indicates type of IDs present in the depsgraph. */ + char id_type_exist[MAX_LIBARRAY]; + /* Quick-Access Temp Data ............. */ /* Nodes which have been tagged as "directly modified". */ |