First changes to implement the 2.5 snapping proposal (discussed back in May and recen...
authorMartin Poirier <theeth@yahoo.com>
Thu, 26 Nov 2009 19:47:55 +0000 (19:47 +0000)
committerMartin Poirier <theeth@yahoo.com>
Thu, 26 Nov 2009 19:47:55 +0000 (19:47 +0000)
commit74715d00cc466ccb45ed525c12cfd1c7ed29243f
tree9c22674e455a5dfc2fdc13f3cb4a8e7a1ad572d2
parent6ca1c913d3acee63a275259f9a708a1389c23b81
First changes to implement the 2.5 snapping proposal (discussed back in May and recently on IRC).

http://wiki.blender.org/index.php/User:Theeth/Snapping

The new widget isn't there yet, but the rest works, including:

Increment (gears) is now a snap mode

Ctrl click to toggle snap on or off (in transform and 3d view)
Shift+Ctrl click to select snap mode (3d view only)

Snap status (on/off) is persisted in tool settings, no need to always turn it back on when entering transform.

It's still possible to have something resembling the old system by editing the transform modal keymap to snap on on ctrl press and snap off on key release.
source/blender/editors/object/object_ops.c
source/blender/editors/space_view3d/view3d_header.c
source/blender/editors/transform/transform.c
source/blender/editors/transform/transform.h
source/blender/editors/transform/transform_constraints.c
source/blender/editors/transform/transform_generics.c
source/blender/editors/transform/transform_ops.c
source/blender/editors/transform/transform_snap.c