From e1b011d72f514a5bbcf917a2efcca45e035972f6 Mon Sep 17 00:00:00 2001 From: tm Date: Mon, 26 Dec 2022 14:02:44 +0000 Subject: [PATCH] fix export humanoid translations (s/position/translation) --- .../Runtime/Scripts/SceneExporter/ExporterAnimationHumanoid.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/SceneExporter/ExporterAnimationHumanoid.cs b/UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/SceneExporter/ExporterAnimationHumanoid.cs index c8e6b0fdb..b60b65d91 100644 --- a/UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/SceneExporter/ExporterAnimationHumanoid.cs +++ b/UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/SceneExporter/ExporterAnimationHumanoid.cs @@ -119,7 +119,7 @@ string CalculatePath(Transform child, Transform parent) var curveSet = new TargetCurveSet(); curveSet.Init(); - var positionTrack = kvp.Value.tracks.FirstOrDefault(x => x.propertyName == "position"); + var positionTrack = kvp.Value.tracks.FirstOrDefault(x => x.propertyName == "translation"); if (positionTrack != null) { var t0 = positionTrack.times;