diff options
author | Martin Poirier <theeth@yahoo.com> | 2006-12-23 03:52:34 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2006-12-23 03:52:34 +0300 |
commit | 1ad1522d10a0efbb5929826af4801724adf4a357 (patch) | |
tree | 298d8e6b9d75707e410d2fb59e756291350499d0 /source/blender/src/transform.c | |
parent | 48b62511bf9535dcaf484f5324c1776975b8791f (diff) |
=== Transform Snap ===
==== Rotation Snap ====
Snap is no longer limited to Translation, it works in Rotation too.
There's some bugs left with rotation snap when using constraints, I'll be ironing that next.
==== Bug Fixes ====
* Fix manipulators to always use Grid.
* Fix initialization bug (took two transform call to do a correct snap init when changing between Grid and Snap)
Diffstat (limited to 'source/blender/src/transform.c')
-rwxr-xr-x | source/blender/src/transform.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index 7a9efd723ae..facee8ed8d9 100755 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -756,6 +756,8 @@ void initTransform(int mode, int context) { createTransData(&Trans); // make TransData structs from selection + initSnapping(&Trans); // Initialize snapping data AFTER mode flags + if (Trans.total == 0) { postTrans(&Trans); return; @@ -940,6 +942,8 @@ void initManipulator(int mode) } Trans.flag |= T_USES_MANIPULATOR; + + Trans.tsnap.modePoint = SNAP_GRID; // Always use snap to grid with manipulators } void ManipulatorTransform() @@ -1896,6 +1900,8 @@ int Rotation(TransInfo *t, short mval[2]) if (t->con.applyRot) { t->con.applyRot(t, NULL, axis); } + + applySnapping(t, &final); if (hasNumInput(&t->num)) { char c[20]; |