diff options
author | Martin Poirier <theeth@yahoo.com> | 2007-01-30 19:07:54 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2007-01-30 19:07:54 +0300 |
commit | 531dc2d2b649de07c45dbd201575b46ebb22070b (patch) | |
tree | ef17df003fa3d5167744cfdf29910c75d857e9f0 /source/blender/src/transform_snap.c | |
parent | ff75e7d302ea6623c2bc7ba55022aa4567243ab9 (diff) |
=== Transform Snap ===
Missing distance calculation in Snap Closest when only one element was selected made it not work correctly for rotations.
Diffstat (limited to 'source/blender/src/transform_snap.c')
-rw-r--r-- | source/blender/src/transform_snap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/transform_snap.c b/source/blender/src/transform_snap.c index 7a36f84db35..a8f0124de8d 100644 --- a/source/blender/src/transform_snap.c +++ b/source/blender/src/transform_snap.c @@ -419,6 +419,8 @@ void TargetSnapClosest(TransInfo *t) Object *ob= G.obedit?G.obedit:t->poseobj; Mat4MulVecfl(ob->obmat, t->tsnap.snapTarget); } + + t->tsnap.dist = t->tsnap.distance(t, t->tsnap.snapTarget, t->tsnap.snapPoint); } // More than one selected item else |