was using wrong global flag for python script disabling in recent commit.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user