diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-28 08:44:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-28 08:46:16 +0300 |
commit | 6f42e69b58ce4b9a2f0370d22b41f1c76bf21f89 (patch) | |
tree | 7c20860e70c7ea09433e860a5485c8044152b3ad /source/blender/editors/include/ED_view3d.h | |
parent | 7efc87dcd2162b9294cb84512b7445fe1565f058 (diff) |
Cleanup: de-duplicate 3D-view depth calculation function
Diffstat (limited to 'source/blender/editors/include/ED_view3d.h')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index 98994feaf38..2c958d282f9 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -366,6 +366,8 @@ float ED_view3d_pixel_size(const struct RegionView3D *rv3d, const float co[3]); float ED_view3d_pixel_size_no_ui_scale(const struct RegionView3D *rv3d, const float co[3]); float ED_view3d_calc_zfac(const struct RegionView3D *rv3d, const float co[3], bool *r_flip); +float ED_view3d_calc_depth_for_comparison(const struct RegionView3D *rv3d, const float co[3]); + bool ED_view3d_clip_segment(const struct RegionView3D *rv3d, float ray_start[3], float ray_end[3]); bool ED_view3d_win_to_ray_clipped(struct Depsgraph *depsgraph, const struct ARegion *region, |