diff --git a/source/blender/blenlib/BLI_array_utils.hh b/source/blender/blenlib/BLI_array_utils.hh index d3f6260d6a8..eebaa88f4ec 100644 --- a/source/blender/blenlib/BLI_array_utils.hh +++ b/source/blender/blenlib/BLI_array_utils.hh @@ -326,6 +326,7 @@ template inline void fill_index_range(MutableSpan span, const T s template bool indexed_data_equal(const Span all_values, const Span indices, const Span values) { + BLI_assert(indices.size() == values.size()); for (const int i : indices.index_range()) { if (all_values[indices[i]] != values[i]) { return false;