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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user