diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-24 21:02:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-24 21:02:35 +0300 |
commit | 2c70b1785c02f8f2c3ac8aeae279a9b8a484d141 (patch) | |
tree | 53c6f6da46b1703fdef08026e2cf0a73d60b2d63 /source/blender/editors | |
parent | 82f019e954e48d0a48fca140c79a1250e0821e9f (diff) |
bugfix [#24887] Crash on snapping verts on other object
now the derived mesh and the editmesh will always have matching faces.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_snap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index 750165219e5..6128c62f670 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -1542,7 +1542,8 @@ int snapObject(Scene *scene, ARegion *ar, Object *ob, int editobject, float obma if (editobject) { em = ((Mesh *)ob->data)->edit_mesh; - dm = editmesh_get_derived_cage(scene, ob, em, CD_MASK_BAREMESH); + /* dm = editmesh_get_derived_cage(scene, ob, em, CD_MASK_BAREMESH); */ + dm = editmesh_get_derived_base(ob, em); /* limitation, em & dm MUST have the same number of faces */ } else { |