Skip to content

Commit 573f35e

Browse files
committed
Writing wavefront should overwrite existing files. Fixes #286
1 parent 4e8c922 commit 573f35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SharpGLTF.Toolkit/IO/WavefrontWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void WriteFiles(string filePath)
6767
foreach (var fileNameAndGenerator in _GetFileGenerators(System.IO.Path.GetFileNameWithoutExtension(filePath)))
6868
{
6969
var fpath = System.IO.Path.Combine(dir, fileNameAndGenerator.Key);
70-
using var fs = File.OpenWrite(fpath);
70+
using var fs = File.Create(fpath);
7171
fileNameAndGenerator.Value(fs);
7272
}
7373
}

0 commit comments

Comments
 (0)