Fix T55325: Revert "Always get a reference point when snapping with the projected...
authorGermano <germano.costa@ig.com.br>
Mon, 4 Jun 2018 16:33:19 +0000 (13:33 -0300)
committerGermano <germano.costa@ig.com.br>
Mon, 4 Jun 2018 16:33:19 +0000 (13:33 -0300)
This reverts commit 0864a4c1ea3156b55c60bbeaf25d265fa5583e69.

That way it's best for retopology.

source/blender/editors/transform/transform_snap.c

index 10de7f3..44d9915 100644 (file)
@@ -406,6 +406,11 @@ void applyGridAbsolute(TransInfo *t)
 
 void applySnapping(TransInfo *t, float *vec)
 {
+       if (t->tsnap.project && t->tsnap.mode == SCE_SNAP_MODE_FACE) {
+               /* Each Trans Data already makes the snap to face */
+               return;
+       }
+
        if (t->tsnap.status & SNAP_FORCED) {
                t->tsnap.targetSnap(t);