diff options
author | Martin Poirier <theeth@yahoo.com> | 2007-01-07 22:33:00 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2007-01-07 22:33:00 +0300 |
commit | eb3d720bd916ce808e1bf4a760545c13cfb0de5d (patch) | |
tree | 708f3fb90abce2018382bd8acd01ab0b8cf35c65 /source/blender/src/transform_snap.c | |
parent | fea030a9cad6632e55a0636ed388999b7f7d19c0 (diff) |
=== Transform Snapping ===
Snap/Grid icon button in 3D view header (edit mesh). FIXME NOTICE: make nice looking icons (yes, that's for you Matt)
When snap is on, a drop down appears for the target method (closest, median, center)
Hotkey to toggle snap is Shift-Tab (this was previously used for a not totally equivalent to Tab. Ton said OK to scrap it). That hotkey is currently restricted to edit mesh (where snap is currently restricted).
Changed a couple of ugliness on how snap settings are stored.
Diffstat (limited to 'source/blender/src/transform_snap.c')
-rw-r--r-- | source/blender/src/transform_snap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/transform_snap.c b/source/blender/src/transform_snap.c index 3290faa289d..ad5f02a9143 100644 --- a/source/blender/src/transform_snap.c +++ b/source/blender/src/transform_snap.c @@ -173,7 +173,7 @@ void setSnappingCallback(TransInfo *t) t->tsnap.calcSnap = CalcSnapGeometry; - switch(G.vd->flag2 & V3D_SNAP_TARGET) + switch(G.vd->snap_target) { case V3D_SNAP_TARGET_CLOSEST: t->tsnap.modeTarget = SNAP_CLOSEST; @@ -200,7 +200,7 @@ void setSnappingCallback(TransInfo *t) t->tsnap.distance = RotationBetween; // Can't do TARGET_CENTER with rotation, use TARGET_MEDIAN instead - if ((G.vd->flag2 & V3D_SNAP_TARGET) == V3D_SNAP_TARGET_CENTER) { + if (G.vd->snap_target == V3D_SNAP_TARGET_CENTER) { t->tsnap.modeTarget = SNAP_MEDIAN; t->tsnap.targetSnap = TargetSnapMedian; } |