Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: some animated property are assumed as non-animated
Browse files Browse the repository at this point in the history
anatawa12 committed Mar 29, 2024
1 parent c9ad199 commit 71df3e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Editor/AnimatorParserV2/PropModNode.cs
Original file line number Diff line number Diff line change
@@ -156,14 +156,14 @@ public static ValueInfo<T> ConstantInfoForOverriding<T, TLayer>(IEnumerable<TLay
case AnimatorWeightState.EitherZeroOrOne:
if (!(layer.Node.Value.PossibleValues is T[] otherValues)) return ValueInfo<T>.Variable;

allPossibleValues.UnionWith(otherValues);

if (layer.IsAlwaysOverride())
{
// the layer is always applied at the highest property.
return new ValueInfo<T>(otherValues);
return new ValueInfo<T>(allPossibleValues.ToArray());
}

allPossibleValues.UnionWith(otherValues);

break;
case AnimatorWeightState.Variable:
return ValueInfo<T>.Variable;

0 comments on commit 71df3e2

Please sign in to comment.