[Bf-blender-cvs] [7c7348f78d1] master: Fix T89027: "factor" field in pose breakdowner not updated

Christoph Lendenfeld noreply at git.blender.org
Tue Sep 14 20:24:41 CEST 2021


Commit: 7c7348f78d1b094c4fdc20f2c9dbfe521b68c11e
Author: Christoph Lendenfeld
Date:   Tue Sep 14 19:24:36 2021 +0100
Branches: master
https://developer.blender.org/rB7c7348f78d1b094c4fdc20f2c9dbfe521b68c11e

Fix T89027: "factor" field in pose breakdowner not updated

After applying the pose breakdowner,
the "factor" slider in the redo panel wasn't set to the correct value
This would cause the pose to jump around
once you start dragging the slider

Reviewed by: Sybren A. Stüvel
Differential Revision: https://developer.blender.org/D12187
Ref: D12187

===================================================================

M	source/blender/editors/armature/pose_slide.c

===================================================================

diff --git a/source/blender/editors/armature/pose_slide.c b/source/blender/editors/armature/pose_slide.c
index c02644cde39..f23376867af 100644
--- a/source/blender/editors/armature/pose_slide.c
+++ b/source/blender/editors/armature/pose_slide.c
@@ -1268,6 +1268,8 @@ static int pose_slide_modal(bContext *C, wmOperator *op, const wmEvent *event)
   /* Perform pose updates - in response to some user action
    * (e.g. pressing a key or moving the mouse). */
   if (do_pose_update) {
+    RNA_float_set(op->ptr, "factor", ED_slider_factor_get(pso->slider));
+
     /* Update percentage indicator in header. */
     pose_slide_draw_status(C, pso);



More information about the Bf-blender-cvs mailing list