was using wrong global flag for python script disabling in recent commit.

This commit is contained in:
Campbell Barton
2010-02-27 12:01:10 +00:00
parent bdebf4f2cd
commit 820570031e
3 changed files with 4 additions and 4 deletions

View File

@@ -631,7 +631,7 @@ void BPY_load_user_modules(bContext *C)
for(text=CTX_data_main(C)->text.first; text; text= text->id.next) {
if(text->flags & TXT_ISSCRIPT && BLI_testextensie(text->id.name+2, ".py")) {
if(!(G.fileflags & G_SCRIPT_AUTOEXEC)) {
if(!(G.f & G_SCRIPT_AUTOEXEC)) {
printf("scripts disabled for \"%s\", skipping '%s'\n", bmain->name, text->id.name+2);
}
else {