[Bf-blender-cvs] [6d879601b76] master: LineArt: Fix "No intersection" flicker.

YimingWu noreply at git.blender.org
Wed Oct 5 12:14:10 CEST 2022


Commit: 6d879601b76fddde010083b7e59705cfa2955c5e
Author: YimingWu
Date:   Wed Oct 5 18:06:21 2022 +0800
Branches: master
https://developer.blender.org/rB6d879601b76fddde010083b7e59705cfa2955c5e

LineArt: Fix "No intersection" flicker.

The flicker was caused by the failure for checking both triangles for
flags. Now fixed.

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

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 305bf62bed3..b0e00fa71fb 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -3425,7 +3425,7 @@ static void lineart_triangle_intersect_in_bounding_area(LineartTriangle *tri,
     tt->testing_e[th->thread_id] = (LineartEdge *)tri;
 
     if (!((testing_triangle->flags | tri->flags) & LRT_TRIANGLE_FORCE_INTERSECTION)) {
-      if ((testing_triangle->flags & LRT_TRIANGLE_NO_INTERSECTION) ||
+      if (((testing_triangle->flags | tri->flags) & LRT_TRIANGLE_NO_INTERSECTION) ||
           (testing_triangle->flags & tri->flags & LRT_TRIANGLE_INTERSECTION_ONLY)) {
         continue;
       }



More information about the Bf-blender-cvs mailing list