diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-01 11:41:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-01 11:43:29 +0300 |
commit | 74fae33ee550336c5eb343873ea9c38605e5802f (patch) | |
tree | cbe3aa8912625ee62346d3b7d43242af8682447b /source/blender/editors | |
parent | 9304df51827f9040789364d8374ce12ef5c43e41 (diff) |
Fix T45825: Macro redo disable options incorrectly
A non repeatable operator would disable editing options for all operators after it.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index efa358fa1a7..67b4f183c82 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -3388,6 +3388,10 @@ void uiLayoutOperatorButs( /* XXX, could give some nicer feedback or not show redo panel at all? */ uiItemL(layout, IFACE_("* Redo Unsupported *"), ICON_NONE); } + else { + /* useful for macros where only one of the steps can't be re-done */ + UI_block_lock_clear(uiLayoutGetBlock(layout)); + } /* menu */ if (op->type->flag & OPTYPE_PRESET) { |