Campbell Barton a1efa167aa Cleanup: replace inline viewport dist calculation with a function
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`).
2025-05-07 01:15:22 +00:00
2025-05-05 17:18:42 +02:00
2025-05-06 12:39:20 +02:00
2023-12-08 13:28:13 +11:00
2025-05-05 16:24:46 +02:00
2025-03-12 21:55:59 +11:00

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.

Blender screenshot

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
No description provided
Readme 841 MiB
Languages
C++ 78%
Python 14.9%
C 2.9%
GLSL 1.9%
CMake 1.2%
Other 0.9%