Fix AacFlState.WithCycleOffset(AacFlFloatParameter floatParam) now correctly enables the parameter

This commit is contained in:
Haï~
2024-07-01 23:21:18 +02:00
parent 3ecefd7f4a
commit c607eb938d
@@ -459,7 +459,7 @@ namespace AnimatorAsCode.V1
/// Set the Cycle Offset to a parameter. /// Set the Cycle Offset to a parameter.
public AacFlState WithCycleOffset(AacFlFloatParameter floatParam) public AacFlState WithCycleOffset(AacFlFloatParameter floatParam)
{ {
State.cycleOffsetParameterActive = false; State.cycleOffsetParameterActive = true;
State.cycleOffsetParameter = floatParam.Name; State.cycleOffsetParameter = floatParam.Name;
return this; return this;