Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-10-20 10:15:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-20 10:21:14 +0300
commit2bcf93bbbeb9e32f680c37a1e0054ff16cb00ef0 (patch)
treef66179eb1a23457503407f03915e8fb1f8ac92f9 /source/blender/editors/include
parent943debfab5c93719d42c143fcf4a5017d2061816 (diff)
View3D: expose snap selection as a utility funciton
This makes it convenient to position appended objects, see: T92111.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/ED_view3d.h5
1 files changed, 5 insertions, 0 deletions
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 {