diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-07 12:16:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-07 13:20:57 +0300 |
commit | a452fcb9a5495ecbbbaedb7e5c631814c7f4372a (patch) | |
tree | 078a29e0559bbbd67921690b082241f5cb9c9cf7 /source/blender/editors/include/ED_view3d.h | |
parent | 19a0df25e36d9e75d486e8c51ccb874095a93e91 (diff) |
View3D: take clipping into account for Frame All
Clamp the min/max used for Frame All/Selected
by the clipping region if it's set.
Resolve T81050
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 f64c6a42f18..a0246174970 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -459,6 +459,8 @@ void ED_view3d_clipping_calc(struct BoundBox *bb, const struct ARegion *region, const struct Object *ob, const struct rcti *rect); +bool ED_view3d_clipping_clamp_minmax(const struct RegionView3D *rv3d, float min[3], float max[3]); + void ED_view3d_clipping_local(struct RegionView3D *rv3d, const float mat[4][4]); bool ED_view3d_clipping_test(const struct RegionView3D *rv3d, const float co[3], |