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>2019-08-07 11:27:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-07 11:27:21 +0300
commitc3ef1f8db3c420612aecf40359533cb043615208 (patch)
tree92497b922815845be0045edda80d4693f58756bc /source/blender/editors/include/ED_view3d.h
parent7fcf1f2d9c1ae4a014f3016500d4e9618346889e (diff)
3D View: utility function to set the depth from a location
Avoids having to do projection/offset calculations inline.
Diffstat (limited to 'source/blender/editors/include/ED_view3d.h')
-rw-r--r--source/blender/editors/include/ED_view3d.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h
index fef3ff0749f..1b8d65bbca4 100644
--- a/source/blender/editors/include/ED_view3d.h
+++ b/source/blender/editors/include/ED_view3d.h
@@ -686,6 +686,9 @@ void ED_view3d_lock_clear(struct View3D *v3d);
float ED_view3d_offset_distance(float mat[4][4], const float ofs[3], const float dist_fallback);
void ED_view3d_distance_set(struct RegionView3D *rv3d, const float dist);
+bool ED_view3d_distance_set_from_location(struct RegionView3D *rv3d,
+ const float dist_co[3],
+ const float dist_min);
float ED_scene_grid_scale(struct Scene *scene, const char **grid_unit);
float ED_view3d_grid_scale(struct Scene *scene, struct View3D *v3d, const char **grid_unit);