LineArt: Fix "No intersection" flicker.

The flicker was caused by the failure for checking both triangles for
flags. Now fixed.
This commit is contained in:
YimingWu 2022-10-05 18:06:21 +08:00 committed by Philipp Oeser
parent 8725bb5108
commit 2a78941d2c
Notes: blender-bot 2023-02-14 06:25:25 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
1 changed files with 2 additions and 2 deletions

View File

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