diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-24 14:41:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-24 14:41:17 +0300 |
commit | 1c94030238bb37918c4cd3256e0acb0b7099579d (patch) | |
tree | 1fc2001961dbf62dbdecfc7453ce9bc562a35295 /source/blender/editors | |
parent | 037956f13fc947c9f08302634a64449ec9ba590e (diff) |
Fix T65824: Span property ignored in mesh.fill_grid
The fix for T60777 caused this operator not to work from Python.
Add a repeat_last flag for operator execution.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 2 | ||||
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index c196a66332d..48cc46f5060 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -4590,7 +4590,7 @@ static int edbm_fill_grid_exec(bContext *C, wmOperator *op) /* Only reuse on redo because these settings need to match the current selection. * We never want to use them on other geometry, repeat last for eg, see: T60777. */ - if ((op->flag & OP_IS_REPEAT) && RNA_property_is_set(op->ptr, prop_span)) { + if ((op->flag & OP_IS_REPEAT_LAST) == 0 && RNA_property_is_set(op->ptr, prop_span)) { span = RNA_property_int_get(op->ptr, prop_span); span = min_ii(span, (clamp / 2) - 1); calc_span = false; diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 1a146f5bd07..ef99d39f990 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -3555,7 +3555,7 @@ static int repeat_last_exec(bContext *C, wmOperator *UNUSED(op)) if (lastop) { WM_operator_free_all_after(wm, lastop); - WM_operator_repeat_interactive(C, lastop); + WM_operator_repeat_last(C, lastop); } return OPERATOR_CANCELLED; |