correct assert for customdata overlap, also quiet `uninitialized` warning in transform.
[blender.git] / source / blender / blenkernel / intern / customdata.c
index c55f1b551e2459093f73781a5afdc8a6d66795fa..36c571a53ceaf5c2dc31481342a87a60cba8d5e4 100644 (file)
@@ -2018,7 +2018,7 @@ void CustomData_interp(const CustomData *source, CustomData *dest,
 
                        for (j = 0; j < count; ++j) {
                                /* if this happens we need to do a temp copy, see: USE_INTERP_OVERLAP_FIX */
-                               BLI_assert(dest_index != src_indices[j]);
+                               BLI_assert(((source == dest) && (dest_index == src_indices[j])) == FALSE);
 
                                sources[j] = (char *)src_data + typeInfo->size * src_indices[j];
                        }