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:
parent
60e648a7e6
commit
614a23e9f6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue