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:
-rw-r--r--source/blender/editors/mesh/editmesh.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh.c b/source/blender/editors/mesh/editmesh.c
index 52744c81b7e..b0c51131041 100644
--- a/source/blender/editors/mesh/editmesh.c
+++ b/source/blender/editors/mesh/editmesh.c
@@ -787,7 +787,6 @@ void make_editMesh(Scene *scene, Object *ob)
undo_editmode_clear();
}
-
/* make editverts */
CustomData_copy(&me->vdata, &em->vdata, CD_MASK_EDITMESH, CD_CALLOC, 0);
mvert= me->mvert;
@@ -797,10 +796,14 @@ void make_editMesh(Scene *scene, Object *ob)
co= mvert->co;
+ /* edit the shape key coordinate if available */
+ if(actkey && a < actkey->totelem)
+ co= (float*)actkey->data + 3*a;
+
eve= addvertlist(em, co, NULL);
evlist[a]= eve;
- // face select sets selection in next loop
+ /* face select sets selection in next loop */
if(!paint_facesel_test(ob))
eve->f |= (mvert->flag & 1);