Fix T45825: Macro redo disable options incorrectly

A non repeatable operator would disable editing options for all operators after it.
This commit is contained in:
2015-09-01 18:41:37 +10:00
parent 9304df5182
commit 74fae33ee5

View File

@@ -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) {