diff options
author | YimingWu <xp8110@outlook.com> | 2021-11-30 17:22:21 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-12-01 10:55:52 +0300 |
commit | 9cec9b4d6e33e2270baa8b94454b16665a8f2f60 (patch) | |
tree | ae0ab3a6beb059c9cc63fbdf31c475c5e11f236d | |
parent | 24b84e468805fb15baa465fbf2a34592b6db16ca (diff) |
Fix(unreported): LineArt intersection mask logic error.
The stroke generation call mistakenly uses all enabled
types to check intersection mask, the correct behavior
is to use individual edge(chain) type.
-rw-r--r-- | source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c index 3df2bec67ff..9a2304755bd 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c @@ -4394,7 +4394,7 @@ static void lineart_gpencil_generate(LineartCache *cache, } } } - if (types & LRT_EDGE_FLAG_INTERSECTION) { + if (ec->type & LRT_EDGE_FLAG_INTERSECTION) { if (mask_switches & LRT_GPENCIL_INTERSECTION_MATCH) { if (ec->intersection_mask != intersection_mask) { continue; |