minor changes to the script auto-execution based on Brecht's suggestions.

This commit is contained in:
Campbell Barton
2013-06-12 00:10:56 +00:00
parent 37f92119e4
commit fa51f02be3
3 changed files with 6 additions and 7 deletions

View File

@@ -731,7 +731,7 @@ void BPY_modules_load_user(bContext *C)
if (!(G.f & G_SCRIPT_AUTOEXEC)) {
if (!(G.f & G_SCRIPT_AUTOEXEC_FAIL_QUIET)) {
G.f |= G_SCRIPT_AUTOEXEC_FAIL;
BLI_snprintf(G.autoexec_fail, sizeof(G.autoexec_fail), "Register Text '%s'", text->id.name + 2);
BLI_snprintf(G.autoexec_fail, sizeof(G.autoexec_fail), "Text '%s'", text->id.name + 2);
printf("scripts disabled for \"%s\", skipping '%s'\n", bmain->name, text->id.name + 2);
}