Fix for unnecessary customdata warning with empty meshes.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 5 Oct 2013 13:36:55 +0000 (13:36 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 5 Oct 2013 13:36:55 +0000 (13:36 +0000)
source/blender/blenkernel/intern/customdata.c

index 13d8c0380ab00fc5d798eb9970e0381a981d1358..f50dbb47a44f47ed9f2857395b3da3182d72dede 100644 (file)
@@ -1969,9 +1969,11 @@ static void CustomData_copy_data_layer(const CustomData *source, CustomData *des
        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);
+               //}
                return;
        }