diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-31 01:33:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-31 01:33:47 +0300 |
commit | f749d0361f8a2cf8ba7d515c31cec1dcf8fe96a5 (patch) | |
tree | 6a510ba82bba9795faf1ffacf53e529dd0e4e196 /source/blender/blenkernel/intern/writeavi.c | |
parent | 1943a73439f04f65d721c8e58270d29498ff6b96 (diff) |
- hash characters in the path would confuse the output file name and not add numbers to it (when rendering animations).
- added an option to BLI_convertstringframe and BLI_convertstringframe_range to add digits if not found.
- removed BLI_convertstringframe where its obviously not needed - such as loading movies and sounds.
Diffstat (limited to 'source/blender/blenkernel/intern/writeavi.c')
-rw-r--r-- | source/blender/blenkernel/intern/writeavi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/writeavi.c b/source/blender/blenkernel/intern/writeavi.c index 0d057525f38..a6092790706 100644 --- a/source/blender/blenkernel/intern/writeavi.c +++ b/source/blender/blenkernel/intern/writeavi.c @@ -129,11 +129,7 @@ static void filepath_avi (char *string, RenderData *rd) BLI_make_existing_file(string); if (!BLI_testextensie(string, ".avi")) { - /* if we dont have any #'s to insert numbers into, use 4 numbers by default */ - if (strchr(string, '#')==NULL) - strcat(string, "####"); /* 4 numbers */ - - BLI_convertstringframe_range(string, rd->sfra, rd->efra); + BLI_convertstringframe_range(string, rd->sfra, rd->efra, 4); strcat(string, ".avi"); } } |