diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-04-04 20:11:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-04-04 20:11:27 +0400 |
commit | 5b06c03884f068892d349f456e43bc85f1ab037c (patch) | |
tree | d5c156a927bb2e5efbbbad20cad0bb7b3fb1c00a /source/blender | |
parent | dd944e88eebfcdd72693987084bb2c2799fc3bdb (diff) |
selecting a new scripts dir didnt rebuild the menu's
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/src/headerbuttons.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c index b5c22c9bc1b..bc7513bbb16 100644 --- a/source/blender/src/headerbuttons.c +++ b/source/blender/src/headerbuttons.c @@ -543,9 +543,14 @@ static void filesel_u_pythondir(char *name) BLI_cleanup_dir(G.sce, name); BLI_split_dirfile(name, dir, file); - + strcpy(U.pythondir, dir); allqueue(REDRAWALL, 0); + + /* act on the change */ + BPyMenu_RemoveAllEntries(); + BPY_rebuild_syspath(); + if (BPyMenu_Init(1) == -1) error("Invalid scripts dir: check console"); } static void filesel_u_sounddir(char *name) |