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:
Diffstat (limited to 'source/blender/src/header_script.c')
-rw-r--r--source/blender/src/header_script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/header_script.c b/source/blender/src/header_script.c
index f0a042f27c0..3c96e1692bf 100644
--- a/source/blender/src/header_script.c
+++ b/source/blender/src/header_script.c
@@ -112,9 +112,9 @@ static void do_script_scriptsmenu(void *arg, int event)
/* these are no defines, easier this way, the codes are in the function below */
switch(event) {
case 0: /* update menus */
- BPyMenu_RemoveAllEntries();
- BPY_rebuild_syspath();
- if (BPyMenu_Init(1) == -1) error("Invalid scripts dir: check console");
+ if (BPY_path_update()==0) {
+ error("Invalid scripts dir: check console");
+ }
break;
}