Skip to content

Conversation

@nakednous
Copy link
Contributor

Resolves #8295

This PR fixes the crash that occurs when calling Camera.slerp() between orthographic cameras.

The solution updates uPMatrix using states.setValue()—as recommended by @davepagurek—instead of assigning directly to mat4, which avoids the crash while keeping the renderer state consistent.

Change:

  • Replace direct mat4 assignment with a states.setValue('uPMatrix', …) update inside Camera.slerp().

@davepagurek
Copy link
Contributor

Thanks for making the changes! It looks like an autoformatter ran on the file, is it possible to get it to just have the slerp update?

@nakednous nakednous force-pushed the fix-camera-slerp-ortho-state branch from 3f1961d to f607b53 Compare December 20, 2025 12:19
@nakednous
Copy link
Contributor Author

Formatting reverted; only the minimal slerp fix remains now. Ready for review—thanks!

Copy link
Contributor

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

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

Thanks so much for your patience on this!

@davepagurek davepagurek merged commit c48237b into processing:dev-2.0 Dec 20, 2025
2 checks passed
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.

2 participants