Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Stanton <abstanton>2022-09-26 17:04:22 +0300
committerSybren A. Stüvel <sybren@blender.org>2022-09-26 17:21:00 +0300
commit2522ca03d20648bbe0160e52b1eead2e212200b6 (patch)
tree0ac9791d875644b5fc818cbad7cdf65af1508298 /source/blender/editors/util
parent2356afc7af9ab53d727cb191f7515643746865a5 (diff)
Asset Browser: Add slider UI to pose blending
Add the Slider UI to pose blending. This adds a slider with percentages, and controls for precision control and incremental control. Reviewed By: sybren Maniphest Tasks: T90182 Differential Revision: https://developer.blender.org/D14984
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r--source/blender/editors/util/ed_draw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/util/ed_draw.c b/source/blender/editors/util/ed_draw.c
index 0477f4dcf76..80bf732e173 100644
--- a/source/blender/editors/util/ed_draw.c
+++ b/source/blender/editors/util/ed_draw.c
@@ -484,6 +484,7 @@ float ED_slider_factor_get(struct tSlider *slider)
void ED_slider_factor_set(struct tSlider *slider, const float factor)
{
+ slider->raw_factor = factor;
slider->factor = factor;
if (!slider->overshoot) {
slider->factor = clamp_f(slider->factor, 0, 1);