Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-06 13:28:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-06 13:28:25 +0400
commit26db98293f9eacf4dcd4dcf6b0b7f82690ec9387 (patch)
tree76e02eb48ab26149f0c66af4cfcf43f29fa3d69a /source/blender/makesrna/intern/rna_mesh_utils.h
parent0b805fcb5d87b067f4d53b27dd349eb2c46563fa (diff)
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.
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh_utils.h')
-rw-r--r--source/blender/makesrna/intern/rna_mesh_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh_utils.h b/source/blender/makesrna/intern/rna_mesh_utils.h
index 9f2a3c083b6..02afaa5b51d 100644
--- a/source/blender/makesrna/intern/rna_mesh_utils.h
+++ b/source/blender/makesrna/intern/rna_mesh_utils.h
@@ -83,7 +83,7 @@
for(cdl=data->layers, a=0; a<data->totlayer; cdl++, a++) { \
if(value.data == cdl) { \
CustomData_set_layer_##active_type##_index(data, layer_type, a); \
- mesh_update_customdata_pointers(me); \
+ mesh_update_customdata_pointers(me, TRUE); \
return; \
} \
} \
@@ -101,5 +101,5 @@
CustomData *data = rna_mesh_##customdata_type(ptr); \
\
CustomData_set_layer_##active_type(data, layer_type, value); \
- mesh_update_customdata_pointers(me); \
+ mesh_update_customdata_pointers(me, TRUE); \
}