diff --git a/Runtime/Scripts/SceneExporter/ExporterAnimation.cs b/Runtime/Scripts/SceneExporter/ExporterAnimation.cs index 3c6bb46ea..aeac5943d 100644 --- a/Runtime/Scripts/SceneExporter/ExporterAnimation.cs +++ b/Runtime/Scripts/SceneExporter/ExporterAnimation.cs @@ -779,7 +779,7 @@ private void ConvertClipToGLTFAnimation(AnimationClip clip, Transform transform, Transform targetTr = target.Length > 0 ? transform.Find(target) : transform; int newTargetId = targetTr ? GetTransformIndex(targetTr) : -1; - var targetTrShouldNotBeExported = targetTr && !targetTr.gameObject.activeInHierarchy && !settings.ExportDisabledGameObjects; + var targetTrShouldNotBeExported = !ShouldTargetBeExported(targetTr); if (hadAlreadyExportedThisBindingBefore && newTargetId < 0) { @@ -1191,6 +1191,23 @@ private void CollectClipCurves(GameObject root, AnimationClip clip, Dictionary targetCurvesBinding) { var keyList = targetCurvesBinding.Keys.ToList();