Skip to content

Commit

Permalink
Add check for spline 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
glabute committed Jun 5, 2024
1 parent e41dad2 commit a53a196
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion com.unity.cinemachine/Runtime/Core/SplineSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public bool KnotsAreValid(Spline spline, Transform transform)
public float GetCurveInterpolation(int curveIndex, float curveDistance) => m_NativeSpline.GetCurveInterpolation(curveIndex, curveDistance);
/// <inheritdoc/>
public float GetCurveLength(int index) => m_NativeSpline.GetCurveLength(index);
#if !CINEMACHINE_GML_TESTING
#if CINEMACHINE_SPLINES_2_5
/// <inheritdoc/>
public float3 GetCurveUpVector(int index, float t) => m_NativeSpline.GetCurveUpVector(index, t);
#endif
Expand Down
5 changes: 5 additions & 0 deletions com.unity.cinemachine/Runtime/Unity.Cinemachine.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
"name": "com.unity.modules.uielements",
"expression": "1.0.0",
"define": "CINEMACHINE_UIELEMENTS"
},
{
"name": "com.unity.splines",
"expression": "2.5.0",
"define": "CINEMACHINE_SPLINES_2_5"
}
],
"noEngineReferences": false
Expand Down

0 comments on commit a53a196

Please sign in to comment.