Revision: 14390 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14390 Author: campbellbarton Date: 2008-04-12 12:55:10 +0200 (Sat, 12 Apr 2008)
Log Message: ----------- simple fix for "Unable to make version backup" warning when saving files. missing a return. For *nix sustems, recent physics pointcache refactor uses stdio.h's remove() rather then system("rm -f ...") for removing files, since it was a lot slower for removing pointcache. Ton used the system command because there was some problem using remove() ~6years back, but he cant remember why, (maybe its not a problem now) Simple error, remove wasn't returning a value, but keep an eye out for problems removing files, and if anyone can reproduce the "Unable to make version backup" problem when saving, we should look into it. Also added a note about using # in the output path for blenders command line help text. Modified Paths: -------------- trunk/blender/source/blender/blenlib/intern/fileops.c trunk/blender/source/creator/creator.c Modified: trunk/blender/source/blender/blenlib/intern/fileops.c =================================================================== --- trunk/blender/source/blender/blenlib/intern/fileops.c 2008-04-11 21:19:00 UTC (rev 14389) +++ trunk/blender/source/blender/blenlib/intern/fileops.c 2008-04-12 10:55:10 UTC (rev 14390) @@ -339,7 +339,9 @@ sprintf(str, "/bin/rmdir \"%s\"", file); return system(str); } - else remove(file); //sprintf(str, "/bin/rm -f \"%s\"", file); + else { + return remove(file); //sprintf(str, "/bin/rm -f \"%s\"", file); + } } return -1; } Modified: trunk/blender/source/creator/creator.c =================================================================== --- trunk/blender/source/creator/creator.c 2008-04-11 21:19:00 UTC (rev 14389) +++ trunk/blender/source/creator/creator.c 2008-04-12 10:55:10 UTC (rev 14390) @@ -185,6 +185,10 @@ printf (" -o <path>\tSet the render path and file name.\n"); printf (" Use // at the start of the path to\n"); printf (" render relative to the blend file.\n"); + printf (" The # characters are replaced by the frame number, and used to define zero padding.\n"); + printf (" ani_##_test.png becomes ani_01_test.png\n"); + printf (" test-######.png becomes test-000001.png\n"); + printf (" When the filename has no #, The suffix #### is added to the filename\n"); printf (" The frame number will be added at the end of the filename.\n"); printf (" eg: blender -b foobar.blend -o //render_ -F PNG -x 1 -a\n"); printf ("\nFormat options:\n"); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs