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>2009-03-29 23:52:53 +0400
committerMartin Poirier <theeth@yahoo.com>2009-03-29 23:52:53 +0400
commit9d4543bd29625699271d50c66c1a27beed7bab6b (patch)
treed2630ccb314bdc56800ad8f6611398b1721c8dcf /source/blender/editors/transform/transform_constraints.c
parent6705b6f96ea4255f6bd69a039562ed603a83a83e (diff)
Add snapping parameters to transform operators (only Translation, Resize and Rotation, since those are the one ones that support it).
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 510351446cd..0064317b57a 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -179,7 +179,8 @@ static void postConstraintChecks(TransInfo *t, float vec[3], float pvec[3]) {
constraintNumInput(t, vec);
}
- if (t->flag & T_AUTOVALUES)
+ /* autovalues is operator param, use that directly but not if snapping is forced */
+ if (t->flag & T_AUTOVALUES && (t->tsnap.status & SNAP_FORCED) == 0)
{
VECCOPY(vec, t->auto_values);
constraintAutoValues(t, vec);