diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-28 01:01:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-28 01:01:24 +0400 |
commit | 058b702f19daf7f19aecc21717d1d355a1f95c83 (patch) | |
tree | 9734f5aabdbdf0ba3a52fb84650630a620437de7 /source/creator | |
parent | cf8ebbf7516b2a151158f792a9e2b7cd59f0467d (diff) |
user modules were not loading in background mode.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 6 |
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 */ |