fixes for auto script execution, changing the user preference also updates the global flag.

This commit is contained in:
2010-02-27 12:34:49 +00:00
parent 820570031e
commit 34857189bc
4 changed files with 15 additions and 4 deletions

View File

@@ -291,8 +291,6 @@ static void setup_app_data(bContext *C, BlendFileData *bfd, char *filename)
if (G.f & G_SWAP_EXCHANGE) bfd->globalf |= G_SWAP_EXCHANGE;
else bfd->globalf &= ~G_SWAP_EXCHANGE;
if ((U.flag & USER_SCRIPT_AUTOEXEC_DISABLE)) bfd->globalf &= ~G_SCRIPT_AUTOEXEC;
G.f= bfd->globalf;
if (!G.background) {