forked from bartvdbraak/blender
Fix [#21529] Operator.report() has inconsistent behaviour with newlines
This commit is contained in:
parent
d776172cf7
commit
4333027a1d
@ -2095,13 +2095,13 @@ uiPopupBlockHandle *ui_popup_menu_create(bContext *C, ARegion *butregion, uiBut
|
||||
pup->mx= window->eventstate->x;
|
||||
pup->my= window->eventstate->y;
|
||||
pup->popup= 1;
|
||||
pup->block->flag |= UI_BLOCK_NO_FLIP;
|
||||
}
|
||||
|
||||
if(str) {
|
||||
/* menu is created from a string */
|
||||
pup->menu_func= ui_block_func_MENUSTR;
|
||||
pup->menu_arg= str;
|
||||
// XXX pup->block->flag |= UI_BLOCK_NO_FLIP;
|
||||
}
|
||||
else {
|
||||
/* menu is created from a callback */
|
||||
|
Loading…
Reference in New Issue
Block a user