=== Transform Snap ===
authorMartin Poirier <theeth@yahoo.com>
Sun, 6 Jul 2008 15:38:51 +0000 (15:38 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sun, 6 Jul 2008 15:38:51 +0000 (15:38 +0000)
Bugfix face snapping in edit mesh didn't test for selection properly

source/blender/src/transform_snap.c

index d16308f17ae5de244bd77b70e5e84af6ed95b28f..3c17d0c1da8f3137cb5fdf414066aa700138a06f 100644 (file)
@@ -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->f & SELECT)
+                                                               if (efa && ((efa->v1->f & SELECT) || (efa->v2->f & SELECT) || (efa->v3->f & SELECT) || (efa->v4 && efa->v4->f & SELECT)))
                                                                {
                                                                        test = 0;
                                                                }