A tiny patch for the brushexport2 obj exporter that stops it from truncating filenames if you don't specifically append ".obj" in the file browser window.
This commit is contained in:
@@ -180,8 +180,12 @@ public:
|
||||
|
||||
bool ExportDataAsWavefront::WriteToFile(const std::string& path, collapsemode mode) const
|
||||
{
|
||||
std::string objFile = path.substr(0, path.length() -4) + ".obj";
|
||||
std::string mtlFile = path.substr(0, path.length() -4) + ".mtl";
|
||||
std::string objFile = path;
|
||||
|
||||
if(path.compare(path.length() - 4, 4, ".obj") != 0)
|
||||
objFile += ".obj";
|
||||
|
||||
std::string mtlFile = objFile.substr(0, objFile.length() -4) + ".mtl";
|
||||
|
||||
std::set<std::string> materials;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user