Update Packages/VRM10/Runtime/IO/Vrm10Exporter.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
ousttrue
2026-03-24 14:20:26 +09:00
committed by GitHub
parent 8f8493f129
commit ff79bc93e8

View File

@@ -781,11 +781,13 @@ namespace UniVRM10
static UniGLTF.Extensions.VRMC_vrm_expressions_node_transform.NodeTransformBind ExportNodeTransformBinding(NodeTransformBinding binding, Func<string, int> getIndex)
{
var translation = ReverseX(binding.OffsetTranslation);
var rotation = ReverseX(binding.OffsetRotation);
return new UniGLTF.Extensions.VRMC_vrm_expressions_node_transform.NodeTransformBind
{
Node = getIndex(binding.RelativePath),
Translation = new float[] { binding.OffsetTranslation.x, binding.OffsetTranslation.y, binding.OffsetTranslation.z },
Rotation = new float[] { binding.OffsetRotation.x, binding.OffsetRotation.y, binding.OffsetRotation.z, binding.OffsetRotation.w },
Translation = new float[] { translation.x, translation.y, translation.z },
Rotation = new float[] { rotation.x, rotation.y, rotation.z, rotation.w },
Scale = new float[] { binding.TargetScale.x, binding.TargetScale.y, binding.TargetScale.z },
};
}