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>2010-04-28 01:01:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-28 01:01:24 +0400
commit058b702f19daf7f19aecc21717d1d355a1f95c83 (patch)
tree9734f5aabdbdf0ba3a52fb84650630a620437de7 /source/creator
parentcf8ebbf7516b2a151158f792a9e2b7cd59f0467d (diff)
user modules were not loading in background mode.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 436275e8c6b..6af3775821d 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -846,6 +846,12 @@ static int load_file(int argc, char **argv, void *data)
if (CTX_wm_manager(C) == NULL) CTX_wm_manager_set(C, wm); /* reset wm */
}
+ /* WM_read_file() runs normally but since we're in background mode do here */
+#ifndef DISABLE_PYTHON
+ /* run any texts that were loaded in and flagged as modules */
+ BPY_load_user_modules(C);
+#endif
+
/* happens for the UI on file reading too (huh? (ton))*/
// XXX BKE_reset_undo();
// BKE_write_undo("original"); /* save current state */