[Bf-blender-cvs] [c6f8567f84f] temp-lineart-contained: LineArt: Fix LRT_ITER_ALL_LINES_BEGIN.
YimingWu
noreply at git.blender.org
Mon May 10 05:38:33 CEST 2021
Commit: c6f8567f84fc5eb61bd0ab91e84c823b49b4d318
Author: YimingWu
Date: Mon May 10 10:59:38 2021 +0800
Branches: temp-lineart-contained
https://developer.blender.org/rBc6f8567f84fc5eb61bd0ab91e84c823b49b4d318
LineArt: Fix LRT_ITER_ALL_LINES_BEGIN.
This handles when the first line list being empty.
===================================================================
M source/blender/gpencil_modifiers/intern/lineart/lineart_intern.h
===================================================================
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_intern.h b/source/blender/gpencil_modifiers/intern/lineart/lineart_intern.h
index ce4b3bd6726..bec9b12403d 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_intern.h
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_intern.h
@@ -85,6 +85,21 @@ void lineart_count_and_print_render_buffer_memory(struct LineartRenderBuffer *rb
#define LRT_ITER_ALL_LINES_BEGIN \
LineartEdge *e, *next_e, **current_list; \
e = rb->contours; \
+ if (!e) { \
+ e = rb->crease_lines; \
+ } \
+ if (!e) { \
+ e = rb->material_lines; \
+ } \
+ if (!e) { \
+ e = rb->edge_marks; \
+ } \
+ if (!e) { \
+ e = rb->intersection_lines; \
+ } \
+ if (!e) { \
+ e = rb->floating_lines; \
+ } \
for (current_list = &rb->contours; e; e = next_e) { \
next_e = e->next;
More information about the Bf-blender-cvs
mailing list