diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-07-14 18:03:36 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-07-14 18:03:36 +0400 |
commit | 01c3db149cfcd5cb357d8fc739bbe4beb08b35e7 (patch) | |
tree | 40bfc9e2e6a8809ee6e70c526ed32c6ecf6b9e6a /source/blender/editors/animation | |
parent | 98520ce4deccb24e5992930694bb4189f6fce0f3 (diff) |
Fix [#32086] Missing bevel "hold shift" for better accuracy.
This commit adds "shift" and numtype to both Bevel and Inset mesh operators.
It also gets rid of the magicnumber used in NumInput to str operation (currently, 20 chars per element, now defined as NUM_STR_REP_LEN in ED_numinput.h).
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/anim_markers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index ea344e7e332..96044e2408e 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -848,14 +848,14 @@ static int ed_marker_move_modal(bContext *C, wmOperator *op, wmEvent *evt) } if (evt->val == KM_PRESS) { - float vec[3]; - char str_tx[256]; + float vec; + char str_tx[NUM_STR_REP_LEN]; if (handleNumInput(&mm->num, evt)) { - applyNumInput(&mm->num, vec); + applyNumInput(&mm->num, &vec); outputNumInput(&mm->num, str_tx); - RNA_int_set(op->ptr, "frames", vec[0]); + RNA_int_set(op->ptr, "frames", vec); ed_marker_move_apply(op); // ed_marker_header_update(C, op, str, (int)vec[0]); // strcat(str, str_tx); |