Cleanup: correct asserts

This commit is contained in:
Jacques Lucke 2023-01-17 13:11:56 +01:00
parent 2c6ed49c03
commit 03fab057f1
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ void copy(const GVArray &src,
const int64_t grain_size)
{
BLI_assert(src.type() == dst.type());
BLI_assert(src.size() == dst.size());
BLI_assert(src.size() >= selection.min_array_size());
BLI_assert(dst.size() >= selection.min_array_size());
threading::parallel_for(selection.index_range(), grain_size, [&](const IndexRange range) {
src.materialize_to_uninitialized(selection.slice(range), dst.data());
});