diff options
author | Ton Roosendaal <ton@blender.org> | 2004-04-21 02:00:33 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-04-21 02:00:33 +0400 |
commit | 6d9b6ccbbfb2cceddc14bef61bfe0067d8131b48 (patch) | |
tree | ef31717c11c6df06233bffb8bd755277d41dc4b4 /source/blender/src/header_script.c | |
parent | 9a122193729f9f31532d092fc3ecc8a7f7cd3d3d (diff) |
- code cleanup: blender/src now compiles -Wall without warnings again.
- first code for panel in NLA window, tomorrow I continue with it.
Diffstat (limited to 'source/blender/src/header_script.c')
-rw-r--r-- | source/blender/src/header_script.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/src/header_script.c b/source/blender/src/header_script.c index cf029812dfd..9b1d618ab7e 100644 --- a/source/blender/src/header_script.c +++ b/source/blender/src/header_script.c @@ -80,9 +80,7 @@ /* action executed after clicking in Scripts menu */ static void do_scripts_submenus(void *int_arg, int event) { - SpaceScript *sc= curarea->spacedata.first; - Script *script= sc->script; - ScrArea *sa; + extern int BPY_menu_do_python(short menutype, int event); // BPY_interface.c int menutype = (int)int_arg; BPY_menu_do_python (menutype, event); @@ -97,7 +95,7 @@ static uiBlock *script_scripts_submenus(void *int_menutype) BPyMenu *pym; int i = 0, menutype = (int)int_menutype; - if ((menutype < 0) || (menutype > PYMENU_TOTAL)) return; + if ((menutype < 0) || (menutype > PYMENU_TOTAL)) return NULL; block= uiNewBlock(&curarea->uiblocks, "importmenu", UI_EMBOSSP, UI_HELV, G.curscreen->mainwin); uiBlockSetButmFunc(block, do_scripts_submenus, int_menutype); @@ -118,7 +116,6 @@ static uiBlock *script_scripts_submenus(void *int_menutype) static void do_script_scriptsmenu(void *arg, int event) { ScrArea *sa; - char dir[FILE_MAXDIR]; if(curarea->spacetype==SPACE_INFO) { sa= closest_bigger_area(); |