diff options
author | YimingWu <xp8110@outlook.com> | 2021-11-30 17:22:21 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-11-30 17:24:42 +0300 |
commit | 7863e03e89fa5d07602497a61d86961af1b10434 (patch) | |
tree | 84e7030ba9e322401046dbf214137557b5d24901 | |
parent | 251c0175349d5b2e2e55e7aa19a0dd41d3281931 (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 1b31d672e3b..6da05a3934c 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; |