LineArt: Intersection function additional clamping
To handle a rare case where it leads to a -1 index in isect order lookup
This commit is contained in:
parent
8c4edd1b37
commit
0a68fa8e14
Notes:
blender-bot
2023-02-14 06:05:22 +01:00
Referenced by commit f6699bfccf
, Revert "LineArt: Intersection function additional clamping"
|
@ -2585,8 +2585,10 @@ static bool lineart_triangle_edge_image_space_occlusion(SpinLock *UNUSED(spl),
|
|||
INTERSECT_JUST_GREATER(is, order, is[LCross], RCross);
|
||||
}
|
||||
else {
|
||||
INTERSECT_JUST_GREATER(is, order, is[LCross], LCross);
|
||||
INTERSECT_JUST_GREATER(is, order, is[LCross], RCross);
|
||||
INTERSECT_JUST_GREATER(is, order, 1 - DBL_TRIANGLE_LIM, LCross);
|
||||
if (LCross > 0) {
|
||||
INTERSECT_JUST_GREATER(is, order, is[LCross], RCross);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue