Quiet annoying warning:
authorCampbell Barton <ideasman42@gmail.com>
Tue, 6 Dec 2011 09:28:25 +0000 (09:28 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 6 Dec 2011 09:28:25 +0000 (09:28 +0000)
commit26db98293f9eacf4dcd4dcf6b0b7f82690ec9387
tree76e02eb48ab26149f0c66af4cfcf43f29fa3d69a
parent0b805fcb5d87b067f4d53b27dd349eb2c46563fa
Quiet annoying warning:

  Warning! Tesselation uvs or vcol data got out of sync, "had to reset!

This would happen on every editmode edit with UV's and wasn't too reassuring that blender was handling uvs/vcols correctly.

From looking into the problem I found that creating the undo mesh would act as if it was tessellating the existing mesh each time and complain that the data was out of sync, when infact the mesh was just created and being filled in.

Also, allocating uv and vcol customdata arrats for tessfaces isn't needed for undo mesh, so save some memory and dont allocate these in the first place.
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenloader/intern/readfile.c
source/blender/bmesh/operators/mesh_conv.c
source/blender/editors/mesh/mesh_data.c
source/blender/editors/mesh/meshtools.c
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/makesrna/intern/rna_mesh_utils.h