Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2007-01-07 22:33:00 +0300
committerMartin Poirier <theeth@yahoo.com>2007-01-07 22:33:00 +0300
commiteb3d720bd916ce808e1bf4a760545c13cfb0de5d (patch)
tree708f3fb90abce2018382bd8acd01ab0b8cf35c65 /source/blender/src/space.c
parentfea030a9cad6632e55a0636ed388999b7f7d19c0 (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/space.c')
-rw-r--r--source/blender/src/space.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index 75e84df35c3..668d5b608bc 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -1358,6 +1358,19 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
BIF_view3d_previewrender(sa);
break;
+ case TABKEY:
+ // Shift-Tabe handling (other cases are in toets)
+ if (G.qual == LR_SHIFTKEY)
+ {
+ // Snap toggle (only edit mesh right now)
+ if (G.obedit && G.obedit->type==OB_MESH)
+ {
+ G.vd->flag2 ^= V3D_TRANSFORM_SNAP;
+ allqueue(REDRAWHEADERS, 0);
+ }
+ }
+ break;
+
/* LEFTMOUSE and RIGHTMOUSE event codes can be swapped above,
* based on user preference USER_LMOUSESELECT
*/