- avoid divide by zero with node progress

- write_crash_blend() was writing to the original path.
This commit is contained in:
2010-06-23 15:07:20 +00:00
parent 989cca1434
commit 4596588fe8
2 changed files with 2 additions and 2 deletions

View File

@@ -539,7 +539,7 @@ int write_crash_blend(void)
char path[FILE_MAX];
BLI_strncpy(path, G.sce, sizeof(path));
BLI_replace_extension(path, sizeof(path), "_crash.blend");
if(BLO_write_file(G.main, G.sce, G.fileflags, NULL, NULL)) {
if(BLO_write_file(G.main, path, G.fileflags, NULL, NULL)) {
printf("written: %s\n", path);
return 1;
}