[Bf-blender-cvs] [7863e03e89f] master: Fix(unreported): LineArt intersection mask logic error.

YimingWu noreply at git.blender.org
Tue Nov 30 15:24:54 CET 2021


Commit: 7863e03e89fa5d07602497a61d86961af1b10434
Author: YimingWu
Date:   Tue Nov 30 22:22:21 2021 +0800
Branches: master
https://developer.blender.org/rB7863e03e89fa5d07602497a61d86961af1b10434

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.

===================================================================

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



More information about the Bf-blender-cvs mailing list