presets now work from non-redo popups,
ended up having to add a new pointer into the uiBlock (which I'd rather have avoided), but setting the uiLayoutSetContextPointer(..) was complicated to properly use for submenus and popus.
This commit is contained in:
@@ -2767,6 +2767,8 @@ void uiLayoutOperatorButs(const bContext *C, uiLayout *layout, wmOperator *op,in
|
||||
PointerRNA op_ptr;
|
||||
uiLayout *row;
|
||||
|
||||
uiLayoutGetBlock(layout)->ui_operator= op;
|
||||
|
||||
row= uiLayoutRow(layout, TRUE);
|
||||
uiItemM(row, (bContext *)C, "WM_MT_operator_presets", NULL, ICON_NONE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user