From c06a7997d44c8cd9512df238c12263aba0bb5cbe Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Sun, 1 Oct 2023 17:12:32 +0900 Subject: [PATCH] fix: ModifyProperties is not correct --- Editor/Processors/TraceAndOptimize/AnimatorParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/Processors/TraceAndOptimize/AnimatorParser.cs b/Editor/Processors/TraceAndOptimize/AnimatorParser.cs index d0139670b..b7c926c01 100644 --- a/Editor/Processors/TraceAndOptimize/AnimatorParser.cs +++ b/Editor/Processors/TraceAndOptimize/AnimatorParser.cs @@ -139,7 +139,7 @@ private class Collector : IComponentMutationsCollector public void ModifyProperties(Component component, IEnumerable properties) { var updater = _modifications.ModifyObject(component); - foreach (var prop in TransformPositionAnimationKeys.Concat(TransformRotationAnimationKeys)) + foreach (var prop in properties) updater.AddModificationAsNewLayer(prop, AnimationProperty.Variable()); } }