* Remember, C-style declarations at the *beginning* of a scope, not C++ style whereve...
authorNathan Letwory <nathan@letworyinteractive.com>
Tue, 6 Oct 2009 14:09:40 +0000 (14:09 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Tue, 6 Oct 2009 14:09:40 +0000 (14:09 +0000)
source/blender/editors/interface/interface_regions.c

index dae4a54c233230d4a2b91409df82e8458aca0c96..cdb62d0a4b49c1e8b25ce7ab5293e0de657762b2 100644 (file)
@@ -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;