a1efa167aa03e549d1b4b77a5b357a6923c0d7f9
While the function `ED_view3d_dist_range_get` was meant to calculate the range for `RegionView3D::dist` the minimum value was often clamped by the clip-start instead. Move this into a function and improve doc-strings in this area to clarify the conventions viewport zoom is expected to follow. - Rename `ED_view3d_dist_range_get` to `ED_view3d_dist_soft_range_get` since it's not an error when the `dist` is outside this range. - Return `Bounds<float>` instead of taking a return argument. - Take a `use_persp_range` argument to avoid re-assigning the minimum in some cases. - Add `ED_view3d_dist_soft_min_get` since it's common for only the minimum to be used (replace inline `v3d->clip_start * 1.5f`).
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
