Fix: Incorrect coordinates used in BLI_rct*_isect_segment functions
Ref D15330.
This commit is contained in:
parent
a2cadb786f
commit
41689bb310
Notes:
blender-bot
2023-11-20 12:14:32 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93 Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
|
@ -294,7 +294,7 @@ bool BLI_rcti_isect_segment(const rcti *rect, const int s1[2], const int s2[2])
|
|||
/* diagonal: [/] */
|
||||
tvec1[0] = rect->xmin;
|
||||
tvec1[1] = rect->ymin;
|
||||
tvec2[0] = rect->xmin;
|
||||
tvec2[0] = rect->xmax;
|
||||
tvec2[1] = rect->ymax;
|
||||
if (isect_segments_i(s1, s2, tvec1, tvec2)) {
|
||||
return true;
|
||||
|
@ -340,7 +340,7 @@ bool BLI_rctf_isect_segment(const rctf *rect, const float s1[2], const float s2[
|
|||
/* diagonal: [/] */
|
||||
tvec1[0] = rect->xmin;
|
||||
tvec1[1] = rect->ymin;
|
||||
tvec2[0] = rect->xmin;
|
||||
tvec2[0] = rect->xmax;
|
||||
tvec2[1] = rect->ymax;
|
||||
if (isect_segments_fl(s1, s2, tvec1, tvec2)) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue