[Bf-blender-cvs] [e2f3320c174] lineart-shadow: LineArt: FIx intersection filtering when no flag is set.
YimingWu
noreply at git.blender.org
Thu Mar 31 08:42:47 CEST 2022
Commit: e2f3320c1744d6b5977b8123ef3c15739eae3eee
Author: YimingWu
Date: Thu Mar 31 14:05:41 2022 +0800
Branches: lineart-shadow
https://developer.blender.org/rBe2f3320c1744d6b5977b8123ef3c15739eae3eee
LineArt: FIx intersection filtering when no flag is set.
===================================================================
M source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
===================================================================
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
index 4b1b58e7abb..73492bfdde5 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -5549,7 +5549,8 @@ static void lineart_gpencil_generate(LineartCache *cache,
}
}
}
- if (ec->type & LRT_EDGE_FLAG_INTERSECTION) {
+ if (ec->type == LRT_EDGE_FLAG_INTERSECTION &&
+ (mask_switches & LRT_GPENCIL_INTERSECTION_FILTER)) {
if (mask_switches & LRT_GPENCIL_INTERSECTION_MATCH) {
if (ec->intersection_mask != intersection_mask) {
continue;
More information about the Bf-blender-cvs
mailing list