diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-01 21:26:18 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-01 21:26:18 +0300 |
commit | 9f251ce3016b5b37e294c35f695e2b6345937764 (patch) | |
tree | 3d5c44d8a22a480b187c1bebc36775e77c8805a7 /source/blender/editors/transform/transform_generics.c | |
parent | d7877d360a12d3ad6497a80c4ab4522fe3a2665d (diff) |
Additive snap for Transform. Easy snapping between two vertices, in the middle of three faces, ...
A to add the current snapping point to the list
Alt-A to remove the last one
The resulting snapping point is the average of all snap points in the list (and the one under the mouse pointer, if valid).
Snapping between two verts is a matter of moving over the first, pressing A, moving over the other, confirming transform.
Diffstat (limited to 'source/blender/editors/transform/transform_generics.c')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 8b7c4b7503b..71a5affb573 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -1095,6 +1095,8 @@ void postTrans (TransInfo *t) MEM_freeN(t->data); } + BLI_freelistN(&t->tsnap.points); + if (t->ext) MEM_freeN(t->ext); if (t->data2d) { MEM_freeN(t->data2d); |