diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-06 12:48:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-06 12:50:56 +0300 |
commit | b7d7bbfc488c37c110c00baf51d58eb12f8b2efb (patch) | |
tree | 98d71aa7c1aa0ac4c2081b864a9451933752c48c /source/blender/editors/transform/transform_ops.c | |
parent | 466125f3d6325204711ecbcc39db2827b928e4a9 (diff) |
Fix extrude glitch where undo state was visible
Diffstat (limited to 'source/blender/editors/transform/transform_ops.c')
-rw-r--r-- | source/blender/editors/transform/transform_ops.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_ops.c b/source/blender/editors/transform/transform_ops.c index eba03087711..870c0e36a3b 100644 --- a/source/blender/editors/transform/transform_ops.c +++ b/source/blender/editors/transform/transform_ops.c @@ -490,6 +490,15 @@ static int transform_invoke(bContext *C, wmOperator *op, const wmEvent *event) WM_event_add_modal_handler(C, op); op->flag |= OP_IS_MODAL_GRAB_CURSOR; // XXX maybe we want this with the manipulator only? + + /* Use when modal input has some transformation to begin with. */ + { + TransInfo *t = op->customdata; + if (UNLIKELY(!is_zero_v4(t->values_modal_offset))) { + transformApply(C, t); + } + } + return OPERATOR_RUNNING_MODAL; } } |