Fix bug in ray-rect intersection test (#4595)

This made submenu popups stay open when they perhaps shouldn't be
This commit is contained in:
Emil Ernerfeldt 2024-05-31 17:10:46 +02:00 committed by GitHub
parent d4ac91ab6d
commit b6805a8006
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ impl Rect {
tmax = tmax.min(ty1.max(ty2));
}
tmin <= tmax
0.0 <= tmin && tmin <= tmax
}
}