diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-05 06:58:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-05 06:58:19 +0400 |
commit | db6ea4d3a5852882cdf8bfac125ca789532b694a (patch) | |
tree | f6e433c31a2dad812993ead00cce5b6e90fef3e1 /source/blender/editors/include | |
parent | 162d02bf5014bd881a1268aca156009108159ff4 (diff) |
utility function for getting the vector direction the mouse is pointing in a perspective view.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index a48e311ae97..c741c41ff5e 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -82,6 +82,7 @@ float *give_cursor(struct Scene *scene, struct View3D *v3d); int initgrabz(struct RegionView3D *rv3d, float x, float y, float z); void window_to_3d(struct ARegion *ar, float *vec, short mx, short my); void window_to_3d_delta(struct ARegion *ar, float *vec, short mx, short my); +void window_to_3d_vector(struct ARegion *ar, float *vec, short mx, short my); void view3d_unproject(struct bglMats *mats, float out[3], const short x, const short y, const float z); /* Depth buffer */ |