diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-10-02 21:20:58 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-10-02 21:20:58 +0400 |
commit | 06c43148a19ad7e8cddf9ba51549b51bdb1f6f0c (patch) | |
tree | fd3d89ad3c366173fd587bfeddc437e1355d1798 /source | |
parent | 0fcd0170315d161926e0a9c600b9cfbda60ba206 (diff) |
transform snap bugfix: correctly ignore hidden elements when snapping to edit mode mesh
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/transform_snap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/transform_snap.c b/source/blender/src/transform_snap.c index 8c5e1f85a3d..e7937e72c2b 100644 --- a/source/blender/src/transform_snap.c +++ b/source/blender/src/transform_snap.c @@ -814,7 +814,7 @@ int snapDerivedMesh(Object *ob, DerivedMesh *dm, float obmat[][4], float ray_sta { efa = EM_get_face_for_index(index); - if (efa && ((efa->v1->f & SELECT) || (efa->v2->f & SELECT) || (efa->v3->f & SELECT) || (efa->v4 && efa->v4->f & SELECT))) + if (efa && (efa->h || (efa->v1->f & SELECT) || (efa->v2->f & SELECT) || (efa->v3->f & SELECT) || (efa->v4 && efa->v4->f & SELECT))) { test = 0; } @@ -957,7 +957,7 @@ int snapDerivedMesh(Object *ob, DerivedMesh *dm, float obmat[][4], float ray_sta { eve = EM_get_vert_for_index(index); - if (eve && eve->f & SELECT) + if (eve && (eve->h || (eve->f & SELECT))) { test = 0; } @@ -1050,7 +1050,7 @@ int snapDerivedMesh(Object *ob, DerivedMesh *dm, float obmat[][4], float ray_sta { eed = EM_get_edge_for_index(index); - if (eed && ((eed->v1->f & SELECT) || (eed->v2->f & SELECT))) + if (eed && (eed->h || (eed->v1->f & SELECT) || (eed->v2->f & SELECT))) { test = 0; } |