diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-12-08 20:20:03 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-12-08 20:21:57 +0300 |
commit | f32b63ec583ce70081a1998b31470dbb74450a0f (patch) | |
tree | d9daeecf905b02bb329ddd0cfbdbd12d7d9487e4 /source/blender/editors/transform/transform_mode_vert_slide.c | |
parent | 6ebc581b52e9e5721833a528f6a536a80b615db2 (diff) |
Fix T93642: value used as transform offset is ignored in some modes
If a transform operator is executed as modal and has a "value" set, that value works as an offset.
However few transform modes were supporting this.
Include more transform modes as supported.
Diffstat (limited to 'source/blender/editors/transform/transform_mode_vert_slide.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode_vert_slide.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_mode_vert_slide.c b/source/blender/editors/transform/transform_mode_vert_slide.c index def5f911c6f..efc4c73fbee 100644 --- a/source/blender/editors/transform/transform_mode_vert_slide.c +++ b/source/blender/editors/transform/transform_mode_vert_slide.c @@ -582,7 +582,7 @@ static void applyVertSlide(TransInfo *t, const int UNUSED(mval[2])) const bool is_clamp = !(t->flag & T_ALT_TRANSFORM); const bool is_constrained = !(is_clamp == false || hasNumInput(&t->num)); - final = t->values[0]; + final = t->values[0] + t->values_modal_offset[0]; applySnapping(t, &final); if (!validSnap(t)) { |