We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a24c335 commit e0d177dCopy full SHA for e0d177d
1 file changed
src/Program.cs
@@ -49,7 +49,7 @@ private static void ConvertFile(string path)
49
RadiantMap map = RadiantMap.Parse(path);
50
WavefrontObj obj = WavefrontObj.CreateFromRadiantMap(map);
51
52
- obj.SaveFile(Path.GetFileNameWithoutExtension(path) + ".obj", _scale);
+ obj.SaveFile(Path.Combine(Path.GetDirectoryName(path), Path.GetFileNameWithoutExtension(path)) + ".obj", _scale);
53
54
DateTime endTime = DateTime.Now;
55
Console.WriteLine("Finished in: " + (endTime-startTime).Milliseconds + "ms.");
0 commit comments