CustomData: quiet error on 0 element copy
This commit is contained in:
@@ -2155,8 +2155,8 @@ static void CustomData_copy_data_layer(
|
||||
src_offset = src_index * typeInfo->size;
|
||||
dst_offset = dst_index * typeInfo->size;
|
||||
|
||||
if (!src_data || !dst_data) {
|
||||
if (!(src_data == NULL && dst_data == NULL)) {
|
||||
if (!count || !src_data || !dst_data) {
|
||||
if (count && !(src_data == NULL && dst_data == NULL)) {
|
||||
printf("%s: warning null data for %s type (%p --> %p), skipping\n",
|
||||
__func__, layerType_getName(source->layers[src_i].type),
|
||||
(void *)src_data, (void *)dst_data);
|
||||
|
||||
Reference in New Issue
Block a user