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:
Campbell Barton 2015-09-01 18:41:37 +10:00
parent 9304df5182
commit 74fae33ee5
Notes: blender-bot 2023-04-14 09:18:04 +02:00
Referenced by issue blender/blender-addons#45825, Undo stack, after executing Macro, has wrong properties disabled
1 changed files with 4 additions and 0 deletions

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