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());

@ -1 +1 @@
Subproject commit aa21a1fdc8fd87a6226cde3ce2e95487a52ccb42
Subproject commit b3e5b194b26a79c0606f92c0565f82ceb5a81b71