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.
This commit is contained in:
YimingWu 2021-11-30 22:22:21 +08:00
parent 251c017534
commit 7863e03e89
1 changed files with 1 additions and 1 deletions

View File

@ -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;