diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-04-05 16:48:28 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-04-05 16:48:37 +0300 |
commit | 44c76e4ce31052501706d9d10850f3d41a5b3fcc (patch) | |
tree | 76334c81e044c0604aee836ad99b2552b91f14a1 /source/blender/editors/include/ED_view3d.h | |
parent | 50782df42586a5a038cad11530714371edaa5cd4 (diff) |
3D View Utils: Add 'margin' parameter to 'ED_view3d_depth_read_cached'
Matches the alternative function ED_view3d_autodist_depth, but is more
efficient since it uses the cache.
No functional changes.
Diffstat (limited to 'source/blender/editors/include/ED_view3d.h')
-rw-r--r-- | source/blender/editors/include/ED_view3d.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index d00d03abae7..499f28beb60 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -155,7 +155,10 @@ void ED_view3d_depth_override(struct Depsgraph *depsgraph, struct Object *obact, eV3DDepthOverrideMode mode, bool update_cache); -float ED_view3d_depth_read_cached(const struct ViewContext *vc, const int mval[2]); +bool ED_view3d_depth_read_cached(const ViewDepths *vd, + const int mval[2], + int margin, + float *r_depth); bool ED_view3d_depth_read_cached_normal(const ViewContext *vc, const int mval[2], float r_normal[3]); |