diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-06 16:51:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-06 16:51:17 +0400 |
commit | 3882f7cde740ee0fd74b0da3ef7f6044d894df71 (patch) | |
tree | c82afd5d7a0cb445152bdab0b01761bdfb9d1bc9 /source/blender/blenkernel/intern/customdata.c | |
parent | 91c2aa7b95a7681ec839c5f8fd91a89980bab99f (diff) |
quiet some warnings and fix build error with strict casting rules.
Diffstat (limited to 'source/blender/blenkernel/intern/customdata.c')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index 2a3d7182770..e3fcd39b391 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -1810,9 +1810,11 @@ void CustomData_copy_data(const CustomData *source, CustomData *dest, dest_offset = dest_index * typeInfo->size; if (!src_data || !dest_data) { - printf("%s: warning null data for %s type (%p --> %p), skipping\n", - __func__, layerType_getName(source->layers[src_i].type), - (void *)src_data, (void *)dest_data); + if (src_data != NULL && dest_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 *)dest_data); + } continue; } |