From 2bcf93bbbeb9e32f680c37a1e0054ff16cb00ef0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 20 Oct 2021 18:15:33 +1100 Subject: View3D: expose snap selection as a utility funciton This makes it convenient to position appended objects, see: T92111. --- source/blender/editors/include/ED_view3d.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 4439ecfdd97..078ebb5e020 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -229,6 +229,11 @@ typedef enum { (V3D_PROJ_TEST_CLIP_CONTENT | V3D_PROJ_TEST_CLIP_NEAR | V3D_PROJ_TEST_CLIP_FAR | \ V3D_PROJ_TEST_CLIP_WIN) +/* view3d_snap.c */ +bool ED_view3d_snap_selected_to_location(struct bContext *C, + const float snap_target_global[3], + const int pivot_point); + /* view3d_cursor_snap.c */ #define USE_SNAP_DETECT_FROM_KEYMAP_HACK typedef enum { -- cgit v1.2.3