0
0
forked from blender/blender
Go to file
Christoph Lendenfeld 79b2e8f211 Animation: Allow setting the slider unit and mode
Split off from [#106952: Animation: Butterworth Smoothing filter](blender/blender#106952)

This patch allows the slider to take a different string than just "%",
the use case is on #106952 where we want to display "Hz" instead.

Additionally the slider got the ability to set modes, which determine
how the factor number is displayed.
`SLIDER_MODE_PERCENT` means it will multiply by 100 and display as whole numbers
`SLIDER_MODE_FLOAT` means it will display just floats with one digit after the comma

Additionally to that, because the slider range is now arbitrary and potentially deals with
large numbers, the mouse distance needed to travel from min to max has been normalized
to the range.

Pull Request: blender/blender#109768
2023-07-07 15:08:40 +02:00
.gitea
.github
build_files
doc
extern
intern Cleanup: declare const variables 2023-07-07 16:00:50 +10:00
locale
release
scripts Anim: remove trailing period from description 2023-07-06 11:12:24 +02:00
source Animation: Allow setting the slider unit and mode 2023-07-07 15:08:40 +02:00
tests
tools Cleanup: code-comments 2023-07-07 15:11:19 +10:00
.clang-format
.clang-tidy
.editorconfig
.git-blame-ignore-revs
.gitignore
CMakeLists.txt CMake: Enable unused-parameter warning for Clang C++ 2023-07-05 09:25:51 +02:00
COPYING
GNUmakefile
make.bat
pyproject.toml
README.md

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.