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>2013-03-28 03:48:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-28 03:48:35 +0400
commit3e2619b3e72aaa7ef3bd15211fc2eaaf883da7d1 (patch)
tree651da3420d1c29c8b6c3f9c853276d6afb2bbefa
parentd15d78a33a8df76b02fa0d27dacd85c8a77ec109 (diff)
workaround for crash when accessing vertex colors in editmode,
just disallow vertex color access in editmode as is done with UV's.
-rw-r--r--source/blender/makesrna/intern/rna_mesh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c
index fd87ce3a6ce..729e8db8cfd 100644
--- a/source/blender/makesrna/intern/rna_mesh.c
+++ b/source/blender/makesrna/intern/rna_mesh.c
@@ -734,13 +734,13 @@ static void rna_MeshLoopColorLayer_data_begin(CollectionPropertyIterator *iter,
{
Mesh *me = rna_mesh(ptr);
CustomDataLayer *layer = (CustomDataLayer *)ptr->data;
- rna_iterator_array_begin(iter, layer->data, sizeof(MLoopCol), me->totloop, 0, NULL);
+ rna_iterator_array_begin(iter, layer->data, sizeof(MLoopCol), (me->edit_btmesh) ? 0 : me->totloop, 0, NULL);
}
static int rna_MeshLoopColorLayer_data_length(PointerRNA *ptr)
{
Mesh *me = rna_mesh(ptr);
- return me->totloop;
+ return (me->edit_btmesh) ? 0 : me->totloop;
}
static int rna_MeshLoopColorLayer_active_render_get(PointerRNA *ptr)