avatar 代入の workaround

This commit is contained in:
ousttrue
2024-01-04 16:15:20 +09:00
parent e3d4ea53e8
commit 30f893fa1b
4 changed files with 21 additions and 24 deletions

View File

@@ -141,17 +141,9 @@ namespace VRM.RuntimeExporterSample
static byte[] ExportCustom(GameObject exportRoot, bool forceTPose = false)
{
// normalize
var target = VRMBoneNormalizer.Execute(exportRoot, forceTPose);
VRMBoneNormalizer.Execute(exportRoot, forceTPose);
try
{
return ExportSimple(target);
}
finally
{
// cleanup
GameObject.Destroy(target);
}
return ExportSimple(exportRoot);
}
void OnExported(UniGLTF.glTF vrm)