diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-24 03:09:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-24 03:48:34 +0300 |
commit | 68922e466028f9508d4a0a38b479e2f34850ad84 (patch) | |
tree | 34420cf6a35c57e2490324affde1b8d08448f7f3 /source/blender/editors/include/ED_view3d.h | |
parent | df5532b502c94b0c2d6208679c179bab32c2f97f (diff) |
View3D: move snapping functions out of ruler
Diffstat (limited to 'source/blender/editors/include/ED_view3d.h')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 83a71c651cd..f325aba7c70 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -395,6 +395,18 @@ void ED_view3d_operator_properties_viewmat_set(struct bContext *C, struct wmOper void ED_view3d_operator_properties_viewmat_get(struct wmOperator *op, int *winx, int *winy, float persmat[4][4]); #endif +bool ED_view3d_snap_from_region( + struct Scene *scene, struct View3D *v3d, struct ARegion *ar, + const float mval[2], float dist_px, + bool use_depth, bool use_obedit, + bool use_vert, bool use_edge, bool use_face, + float r_co[3], float r_no[3]); + +bool ED_view3d_snap_from_ray( + struct Scene *scene, + const float ray_start[3], const float ray_normal[3], + float r_co[3]); + /* render */ void ED_view3d_stop_render_preview(struct wmWindowManager *wm, struct ARegion *ar); void ED_view3d_shade_update(struct Main *bmain, struct Scene *scene, struct View3D *v3d, struct ScrArea *sa); |