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 Cleanup: remove_cc_flag use in CMake 2023-07-05 13:27:21 +10:00
doc Cleanup: use set.discard instead of a __contains__ check before remove() 2023-07-02 19:54:27 +10:00
extern Cleanup: disable -Weverything for clang under extern/ 2023-07-05 13:20:53 +10:00
intern Cleanup: declare const variables 2023-07-07 16:00:50 +10:00
locale I18n: Updated translations from SVN trunk (r6617). 2023-07-04 18:25:00 +02:00
release Fix mistake in PyPI release instructions, improve console output 2023-07-03 17:00:34 +02:00
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 Fix incorrect EXPECT_M4_NEAR 2023-07-03 19:18:28 +02:00
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.