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

@@ -166,7 +166,7 @@ float BPY_pydriver_eval (ChannelDriver *driver)
if ((expr == NULL) || (expr[0]=='\0'))
return result;
if(!(G.fileflags & G_SCRIPT_AUTOEXEC)) {
if(!(G.f & G_SCRIPT_AUTOEXEC)) {
printf("skipping driver '%s', automatic scripts are disabled\n", driver->expression);
return result;
}

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 {