diff --git a/Scripts/Format/Editor/vrmAssetPostprocessor.cs b/Scripts/Format/Editor/vrmAssetPostprocessor.cs index 6f4e07eea..6eb821a50 100644 --- a/Scripts/Format/Editor/vrmAssetPostprocessor.cs +++ b/Scripts/Format/Editor/vrmAssetPostprocessor.cs @@ -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()); diff --git a/UniGLTF b/UniGLTF index aa21a1fdc..b3e5b194b 160000 --- a/UniGLTF +++ b/UniGLTF @@ -1 +1 @@ -Subproject commit aa21a1fdc8fd87a6226cde3ce2e95487a52ccb42 +Subproject commit b3e5b194b26a79c0606f92c0565f82ceb5a81b71