Update UniGLTF

This commit is contained in:
ousttrue
2018-04-22 16:08:00 +09:00
parent 4ec5a5a927
commit 45a6bb3554
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ namespace VRM
//Directory.CreateDirectory(folder);
}
var textureName = string.IsNullOrEmpty(image.extra.name) ? string.Format("buffer#{0:00}", i) : image.extra.name;
var textureName = !string.IsNullOrEmpty(image.name) ? image.name: string.Format("buffer#{0:00}", i);
var png = Path.Combine(folder, textureName + ".png");
var byteSegment = context.GLTF.GetViewBytes(image.bufferView);
File.WriteAllBytes(png, byteSegment.ToArray());

Submodule UniGLTF updated: aa21a1fdc8...b3e5b194b2