mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-24 11:35:24 -05:00
Update Packages/VRM10/Runtime/IO/Vrm10Exporter.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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 },
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user