diff options
author | Martin Poirier <theeth@yahoo.com> | 2006-12-20 01:25:07 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2006-12-20 01:25:07 +0300 |
commit | f4a03182fbe1d3960c78e610e1659061f7e39482 (patch) | |
tree | c01c8850ae15571fb8b141c352183746840959d8 /source/blender/src/transform.c | |
parent | 83e3545f9e5d34552bc6813fd208a039ea6da9aa (diff) |
=== Transform Snap ===
Draw a circle around the snapping point for visual aid.
Different snapping target method, switchable in the 3d view header menu in the Transform menu.
* Closest: Snaps the closest vertex to the point
* Median: Snaps the median of the selection to the point
* Center: Snaps the transform center to the point (this is different from median because you can use Cursor/Boundbox as center)
Fix a bug with constraints/snap handling.
Diffstat (limited to 'source/blender/src/transform.c')
-rwxr-xr-x | source/blender/src/transform.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index 59564ec83dd..7e406e9c61c 100755 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -98,6 +98,14 @@ TransInfo Trans = {TFM_INIT, 0}; // enforce init on first usage /******************************** Helper functions ************************************/ + +/* GLOBAL Wrapper Fonctions */ + +void BIF_drawSnap() +{ + drawSnapping(&Trans); +} + /* ************************** Dashed help line **************************** */ @@ -2158,9 +2166,9 @@ int Translation(TransInfo *t, short mval[2]) if (t->con.mode & CON_APPLY) { float pvec[3] = {0.0f, 0.0f, 0.0f}; + applySnapping(t, t->vec); t->con.applyVec(t, NULL, t->vec, tvec, pvec); VECCOPY(t->vec, tvec); - applySnapping(t, t->vec); headerTranslation(t, pvec, str); } else { |