Merged in fix-esheephd (pull request #55)

Revert file path construction behavior to not strip forward slashes from prefix so it can be utilized to change output directory

Approved-by: Matt Feemster
This commit is contained in:
Drake Arconis 2021-04-27 19:31:58 +00:00 committed by Matt Feemster
commit 21d9f7f465

View File

@ -347,13 +347,13 @@ static string MakeSingleFilename(const string& path, const string& out, const st
}
else if (useFinalName)
{
filename = path + CleanPath(prefix + finalName + suffix + "." + format);
filename = path + prefix + CleanPath(finalName + suffix + "." + format);
}
else
{
ostringstream fnstream;
fnstream << prefix << setfill('0') << setprecision(0) << fixed << setw(padding) << i << suffix << "." << format;
filename = path + CleanPath(fnstream.str());
fnstream << setfill('0') << setprecision(0) << fixed << setw(padding) << i << suffix << "." << format;
filename = path + prefix + CleanPath(fnstream.str());
}
return filename;
@ -371,8 +371,8 @@ static string MakeSingleFilename(const string& path, const string& out, const st
static string MakeAnimFilename(const string& path, const string& prefix, const string& suffix, const string& format, glm::uint padding, size_t ftime)
{
ostringstream fnstream;
fnstream << prefix << setfill('0') << setprecision(0) << fixed << setw(padding) << ftime << suffix << format;
return path + CleanPath(fnstream.str());
fnstream << setfill('0') << setprecision(0) << fixed << setw(padding) << ftime << suffix << format;
return path + prefix + CleanPath(fnstream.str());
}
/// <summary>