mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-20 09:47:56 -05:00
Update UniGLTF
This commit is contained in:
parent
4ec5a5a927
commit
45a6bb3554
|
|
@ -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());
|
||||
|
|
|
|||
2
UniGLTF
2
UniGLTF
|
|
@ -1 +1 @@
|
|||
Subproject commit aa21a1fdc8fd87a6226cde3ce2e95487a52ccb42
|
||||
Subproject commit b3e5b194b26a79c0606f92c0565f82ceb5a81b71
|
||||
Loading…
Reference in New Issue
Block a user