Skip to content

Commit 06293a1

Browse files
author
Clément Léger
committed
Fixed missing directory (thanks!)
1 parent 5302876 commit 06293a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/External Tools/Exporter/EditorSketchfabExporter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ private static void MeshesToFile(ArrayList meshes, string folder, string filenam
290290
{
291291
Dictionary<string, ObjMaterial> materialList = PrepareFileWrite();
292292

293+
System.IO.Directory.CreateDirectory(folder);
293294
string path = folder + Path.DirectorySeparatorChar + filename + ".obj";
294295
using (StreamWriter sw = new StreamWriter(path)) {
295296
sw.Write("mtllib ." + Path.DirectorySeparatorChar + filename + ".mtl\n");

0 commit comments

Comments
 (0)