Skip to content

Commit

Permalink
Update CinemachineSplineDolly.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
glabute committed May 30, 2024
1 parent 8ec2ee4 commit 744f869
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,12 @@ protected override void OnEnable()
AutomaticDolly.Method?.Reset();
}

///<inheritdoc/>
protected override void OnDisable() => SplineSettings.InvalidateCache();
/// <inheritdoc/>
protected override void OnDisable()
{
m_SplineSettings.InvalidateCache();
base.OnDisable();
}

/// <summary>True if component is enabled and has a spline</summary>
public override bool IsValid => enabled && Spline != null;
Expand Down

0 comments on commit 744f869

Please sign in to comment.