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/makesdna/DNA_view3d_types.h | |
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/makesdna/DNA_view3d_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_view3d_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index c174c975252..27ccc318067 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -167,6 +167,11 @@ typedef struct View3D { #define V3D_OPP_DIRECTION_NAME 1 #define V3D_FLYMODE 2 #define V3D_TRANSFORM_SNAP 4 +#define V3D_SNAP_TARGET (8|16) +#define V3D_SNAP_TARGET_CLOSEST 0 +#define V3D_SNAP_TARGET_CENTER 8 +#define V3D_SNAP_TARGET_MEDIAN 16 + /* View3D->around */ #define V3D_CENTRE 0 |