Skip to content

Commit

Permalink
Fixed missing directory (thanks!)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Léger committed Dec 5, 2013
1 parent 5302876 commit 06293a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/External Tools/Exporter/EditorSketchfabExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ private static void MeshesToFile(ArrayList meshes, string folder, string filenam
{
Dictionary<string, ObjMaterial> materialList = PrepareFileWrite();

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

0 comments on commit 06293a1

Please sign in to comment.