From 65f7271360f75b8fc2825f3f09176209fba29357 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 30 May 2018 20:30:39 +0900 Subject: [PATCH] Modify glTFBuffer.byteslength after VRM export #12 --- Scripts/Format/VRMExporter.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Scripts/Format/VRMExporter.cs b/Scripts/Format/VRMExporter.cs index f625a094f..b3a0f7147 100644 --- a/Scripts/Format/VRMExporter.cs +++ b/Scripts/Format/VRMExporter.cs @@ -30,6 +30,13 @@ namespace VRM exporter.WriteTo(path); } } + + // update buffer size + foreach (var b in gltf.buffers) + { + b.UpdateByteLength(); + } + return gltf; }