Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-04-04 20:11:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-04 20:11:27 +0400
commit5b06c03884f068892d349f456e43bc85f1ab037c (patch)
treed5c156a927bb2e5efbbbad20cad0bb7b3fb1c00a /source/blender
parentdd944e88eebfcdd72693987084bb2c2799fc3bdb (diff)
selecting a new scripts dir didnt rebuild the menu's
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/src/headerbuttons.c7
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)