diff options
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index dae4a54c233..cdb62d0a4b4 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -2485,6 +2485,7 @@ void uiPupMenuInvoke(bContext *C, const char *idname, int spacetype) { uiPopupMenu *pup; uiLayout *layout; + Menu menu; MenuType *mt= BKE_spacemenu_find(idname, spacetype); if(mt==NULL) { @@ -2498,8 +2499,6 @@ void uiPupMenuInvoke(bContext *C, const char *idname, int spacetype) pup= uiPupMenuBegin(C, mt->label, 0); layout= uiPupMenuLayout(pup); - Menu menu; - menu.layout= layout; menu.type= mt; |