c9b51591da7cacf0cae3f9253298201719688a4c
The current implementation goes like this * default to a 0-1 range * you can set `is_bidirectional` to get a -1/1 range * if the slider is bidirectional the overshoot goes both ways, otherwise only on the positive side The issue is that it is not possible to have a 0-1 range but overshoot both ways. This is useful for example on the "Blend to Default" operator, where 0 means current position and 1 default. But overshoot also makes sense for this operator since the other way just scales away from default. So this patch: * removes `is_bidirectional` * adds `float range[2]` to `tSlider` and a setter for it * rewrite some logic to handle arbitrary ranges * split the `allow_overshoot` flag into one flag for either side Pull Request: https://projects.blender.org/blender/blender/pulls/107406
…
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%
