forked from bartvdbraak/blender
* Remember, C-style declarations at the *beginning* of a scope, not C++ style wherever one pleases (before first usage).
This commit is contained in:
parent
dd8e2897ba
commit
76019d5fb9
@ -2485,6 +2485,7 @@ void uiPupMenuInvoke(bContext *C, const char *idname, int spacetype)
|
|||||||
{
|
{
|
||||||
uiPopupMenu *pup;
|
uiPopupMenu *pup;
|
||||||
uiLayout *layout;
|
uiLayout *layout;
|
||||||
|
Menu menu;
|
||||||
MenuType *mt= BKE_spacemenu_find(idname, spacetype);
|
MenuType *mt= BKE_spacemenu_find(idname, spacetype);
|
||||||
|
|
||||||
if(mt==NULL) {
|
if(mt==NULL) {
|
||||||
@ -2498,8 +2499,6 @@ void uiPupMenuInvoke(bContext *C, const char *idname, int spacetype)
|
|||||||
pup= uiPupMenuBegin(C, mt->label, 0);
|
pup= uiPupMenuBegin(C, mt->label, 0);
|
||||||
layout= uiPupMenuLayout(pup);
|
layout= uiPupMenuLayout(pup);
|
||||||
|
|
||||||
Menu menu;
|
|
||||||
|
|
||||||
menu.layout= layout;
|
menu.layout= layout;
|
||||||
menu.type= mt;
|
menu.type= mt;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user