UI: fix operator redo showing empty popovers

Many operators have no options,
showing a popover button with no content isn't good.
This commit is contained in:
2018-05-02 10:59:20 +02:00
parent 2bc9396b55
commit 85dcdb87d2
5 changed files with 54 additions and 18 deletions

View File

@@ -1561,7 +1561,7 @@ static void template_operator_redo_property_buts_draw(
}
}
void uiTemplateOperatorRedoProperties(uiLayout *layout, bContext *C)
void uiTemplateOperatorRedoProperties(uiLayout *layout, const bContext *C)
{
wmOperator *op = WM_operator_last_redo(C);
uiBlock *block = uiLayoutGetBlock(layout);