mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-24 19:45:37 -05:00
Update UniGLTF
This commit is contained in:
@@ -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
Submodule UniGLTF updated: aa21a1fdc8...b3e5b194b2
Reference in New Issue
Block a user