LineArt: Fix "No intersection" flicker.

The flicker was caused by the failure for checking both triangles for
flags. Now fixed.
tmp_usd_import_unbound_mtls
YimingWu 4 months ago
parent 7fa0080c4f
commit 6d879601b7
Notes: blender-bot 3 hours ago
Referenced by issue #100749: Blender LTS: Maintenance Task 3.3

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

Loading…
Cancel
Save