Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions com.unity.cinemachine/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Bugfix: 3rdPersonFollow shows a warning message when no follow target is assigned like the rest of the body components.
- Bugfix: FadeOut sample scene shader was culling some objects incorrectly.
- Bugfix: Freelook had wrong heading at first frame, which could cause a slight jitter.
- Bugfix: Fixed spurious Z rotations during speherical blend.


## [2.9.0-pre.7] - 2022-03-29
Expand Down
5 changes: 3 additions & 2 deletions com.unity.cinemachine/Runtime/Core/CameraState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ public static CameraState Lerp(CameraState stateA, CameraState stateB, float t)
}
else
{
var blendUp = Vector3.Slerp(
stateA.RawOrientation * Vector3.up, stateB.RawOrientation * Vector3.up, t);
var blendUp = (state.BlendHint & BlendHintValue.CylindricalPositionBlend) != 0
? state.ReferenceUp // the pre-blended up vectors
: Vector3.Slerp(stateA.RawOrientation * Vector3.up, stateB.RawOrientation * Vector3.up, t);

// Rotate while preserving our lookAt target
if (Vector3.Cross(dirTarget, blendUp).AlmostZero())
Expand Down
4 changes: 3 additions & 1 deletion com.unity.cinemachine/Tests/Runtime/CmColliderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Tests.Runtime
{
#if CINEMACHINE_PHYSICS
public class CmColliderTests : CinemachineFixtureBase
{
CinemachineBrain m_Brain;
Expand Down Expand Up @@ -164,4 +165,5 @@ static IEnumerator WaitForOnePhysicsFrame()
yield return null;
}
}
}
#endif
}