diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-08-21 01:18:25 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-08-21 01:18:50 +0300 |
commit | dd08d68df835e54ccd1fdf24ae154e461faab685 (patch) | |
tree | 482d5148ed69275a85cffa441a9d68c348214233 /source/blender/makesrna/intern/rna_scene.c | |
parent | 2db09212fc7fb2506e7c582aedf08f94e3fff8d7 (diff) |
Transform: New Snap Option: Edge Perpendicular
Part of T66420
Option for snapping to the nearest point of a reference coordinate.
The patch also adds Edge Center and Perpendicular snaps to the ruler.
{F7675906}
Reviewers: campbellbarton, brecht
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D5543
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 0da96a895a9..b1661e9a0eb 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -172,6 +172,11 @@ const EnumPropertyItem rna_enum_snap_element_items[] = { ICON_SNAP_MIDPOINT, "Edge Center", "Snap to the middle of edges"}, + {SCE_SNAP_MODE_EDGE_PERPENDICULAR, + "EDGE_PERPENDICULAR", + ICON_SNAP_PERPENDICULAR, + "Edge Perpendicular", + "Snap to the nearest point on an edge"}, {0, NULL, 0, NULL, NULL}, }; |