Skip to content

Conversation

@glabute
Copy link
Collaborator

@glabute glabute commented Jul 15, 2025

Purpose of this PR

Fixes CMCL-1694. See ticket for a test project.

Improves the handling of reversing a blend-in-progress in CameraBlendStack by tracking the normalized blend position and adjusting the blend duration accordingly. Adds a comprehensive unit test in BlendManagerTests to verify correct behavior when repeatedly reversing blends between cameras.

Testing status

  • Added an automated test
  • Passed all automated tests
  • Manually tested

Documentation status

  • Updated CHANGELOG
  • Updated README (if applicable)
  • Commented all public classes, properties, and methods
  • Updated user documentation

Technical risk

low

Improves the handling of reversing a blend-in-progress in CameraBlendStack by tracking the normalized blend position and adjusting the blend duration accordingly. Adds a comprehensive unit test in BlendManagerTests to verify correct behavior when repeatedly reversing blends between cameras.
@glabute glabute requested a review from alexzaranek July 15, 2025 15:52
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@b8bfaab). Learn more about missing BASE report.
Report is 164 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1066   +/-   ##
=======================================
  Coverage        ?   27.35%           
=======================================
  Files           ?      256           
  Lines           ?    28834           
  Branches        ?        0           
=======================================
  Hits            ?     7888           
  Misses          ?    20946           
  Partials        ?        0           
Files with missing lines Coverage Δ
...unity.cinemachine/Runtime/Core/CameraBlendStack.cs 63.33% <100.00%> (ø)
...nity.cinemachine/Tests/Editor/BlendManagerTests.cs 98.36% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@alexzaranek alexzaranek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good and work well 👍

@glabute glabute merged commit 499137d into main Jul 16, 2025
3 of 16 checks passed
@glabute glabute deleted the dev/fix-blend-reversing-logic branch July 16, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants