Fix: BLI: Bounds `is_empty` function

This was meant to be the same as `BLI_rct*_is_empty`
but wasn't because the `less_or_equal_than` was
effectively doing a logical "and", when it should have
been doing a logical "or".
This commit is contained in:
Falk David 2024-03-29 17:12:51 +01:00
parent 60e648a7e6
commit 614a23e9f6
1 changed files with 3 additions and 3 deletions

View File

@ -125,11 +125,11 @@ template<typename T, int Size>
[[nodiscard]] inline bool less_or_equal_than(const VecBase<T, Size> &a, const VecBase<T, Size> &b)
{
for (int i = 0; i < Size; i++) {
if (a[i] > b[i]) {
return false;
if (a[i] <= b[i]) {
return true;
}
}
return true;
return false;
}
} // namespace detail