Add filename padding option to EmberAnimate

Enables padding with more than 5 zeros when rendering animations with more than 99,999 frames
This commit is contained in:
Simon Detheridge
2015-03-26 21:03:45 +00:00
parent b5b660e2a0
commit e746ae33ab
2 changed files with 5 additions and 1 deletions

View File

@ -300,7 +300,7 @@ bool EmberAnimate(EmberOptions& opt)
if (opt.Out().empty())
{
ostringstream fnstream;
fnstream << inputPath << opt.Prefix() << setfill('0') << setw(5) << ftime << opt.Suffix() << "." << opt.Format();
fnstream << inputPath << opt.Prefix() << setfill('0') << setw(opt.FilenamePadding()) << ftime << opt.Suffix() << "." << opt.Format();
filename = fnstream.str();
}