selecting a new scripts dir didnt rebuild the menu's

This commit is contained in:
Campbell Barton 2008-04-04 16:11:27 +00:00
parent dd944e88ee
commit 5b06c03884

@ -546,6 +546,11 @@ static void filesel_u_pythondir(char *name)
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)