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/makesdna/DNA_windowmanager_types.h | |
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/makesdna/DNA_windowmanager_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_windowmanager_types.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index 171c0a25187..c87d50fedaa 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -505,8 +505,17 @@ enum { * Typically this shouldn't make any difference, but it rare cases its needed * (see smooth-view) */ OP_IS_INVOKE = (1 << 0), - /** So we can detect if an operators exec() call is activated from an interactive repeat. */ + /** So we can detect if an operators exec() call is activated by adjusting the last action. */ OP_IS_REPEAT = (1 << 1), + /** + * So we can detect if an operators exec() call is activated from #SCREEN_OT_repeat_last. + * + * This difference can be important because previous settings may be used, + * even with #PROP_SKIP_SAVE the repeat last operator will use the previous settings. + * Unlike #OP_IS_REPEAT the selection (and context generally) may be be different each time. + * See T60777 for an example of when this is needed. + */ + OP_IS_REPEAT_LAST = (1 << 1), /** When the cursor is grabbed */ OP_IS_MODAL_GRAB_CURSOR = (1 << 2), |