[Bf-blender-cvs] [2a78941d2cd] blender-v3.3-release: LineArt: Fix "No intersection" flicker.

YimingWu noreply at git.blender.org
Mon Oct 17 16:31:17 CEST 2022


Commit: 2a78941d2cd0d679b70a1bb1f438d17ebf71ce8a
Author: YimingWu
Date:   Wed Oct 5 18:06:21 2022 +0800
Branches: blender-v3.3-release
https://developer.blender.org/rB2a78941d2cd0d679b70a1bb1f438d17ebf71ce8a

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 5893df2ba56..e251292fe2f 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -3400,8 +3400,8 @@ 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_FORCE_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