[Bf-blender-cvs] [bd7308e951e] lanpr-under-gp: LineArt: use DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN to support instanced collections and view layer flag.

YimingWu noreply at git.blender.org
Wed Jul 15 12:30:18 CEST 2020


Commit: bd7308e951e16e42fbb354b57a555fd0770bd657
Author: YimingWu
Date:   Wed Jul 15 18:30:13 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBbd7308e951e16e42fbb354b57a555fd0770bd657

LineArt: use DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN to support instanced collections and view layer flag.

===================================================================

M	source/blender/editors/lineart/lineart_cpu.c

===================================================================

diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c
index 21872d29c87..fcce7c25153 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -1588,15 +1588,12 @@ static void lineart_make_render_geometry_buffers(
   BLI_listbase_clear(&rb->triangle_buffer_pointers);
   BLI_listbase_clear(&rb->vertex_buffer_pointers);
 
-  DEG_OBJECT_ITER_BEGIN (depsgraph,
-                         ob,
-                         DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY | DEG_ITER_OBJECT_FLAG_VISIBLE |
-                             DEG_ITER_OBJECT_FLAG_DUPLI | DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET) {
+  DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN (depsgraph, ob) {
     int usage = ED_lineart_object_collection_usage_check(scene->master_collection, ob);
 
     lineart_make_render_geometry_buffers_object(ob, view, proj, rb, usage);
   }
-  DEG_OBJECT_ITER_END;
+  DEG_OBJECT_ITER_FOR_RENDER_ENGINE_END;
 }
 
 #define INTERSECT_SORT_MIN_TO_MAX_3(ia, ib, ic, lst) \



More information about the Bf-blender-cvs mailing list