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
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2019-05-28 10:11:55 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-05-29 15:48:59 +0300
commit2069b3b888db7ca448317218d3d42234b7fa77eb (patch)
treeaaa7491de143cb7a765b42ecc29b87de79d94bc7 /source/blender/render
parent56176bd19ece34166b17a799c0ff522556927ac9 (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/render')
-rw-r--r--source/blender/render/intern/source/external_engine.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/external_engine.c b/source/blender/render/intern/source/external_engine.c
index a5bf5adc243..a41f7bbe5fc 100644
--- a/source/blender/render/intern/source/external_engine.c
+++ b/source/blender/render/intern/source/external_engine.c
@@ -867,8 +867,6 @@ void RE_engine_free_blender_memory(RenderEngine *engine)
/* Weak way to save memory, but not crash grease pencil.
*
* TODO(sergey): Find better solution for this.
- * TODO(sergey): Try to find solution which does not involve looping over
- * all the objects.
*/
if (DRW_render_check_grease_pencil(engine->depsgraph)) {
return;