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>2006-12-23 03:52:34 +0300
committerMartin Poirier <theeth@yahoo.com>2006-12-23 03:52:34 +0300
commit1ad1522d10a0efbb5929826af4801724adf4a357 (patch)
tree298d8e6b9d75707e410d2fb59e756291350499d0 /source/blender/src/transform.c
parent48b62511bf9535dcaf484f5324c1776975b8791f (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-xsource/blender/src/transform.c6
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];